Support for the full range of Unicode character codes has been added to the main keymap back in 2009, with compatibility shims added in 2011 (to support an older kbdcontrol command on a new kernel during an upgrade from FreeBSD-8 to FreeBSD-9)
Unicode support for accented characters that are reached via dead key combinations has been added just recently, again with compatibility shims to allow all combinations of old/new kernel and old/new kbdcontrol command to load and display the keymaps including the dead key table. (But full Unicode in the dead key table requires both a new kernel and kbdcontrol command.)
This review contains patches that make the support for pre-Unicode ioctl() parameters depend on COMPAT_FREEBSD13 (in -CURRENT, no MFC to 13 is planned). This includes both the main keymap and the dead key map.
The kbdcontrol command passes COMPAT_FREEBSD13 to the build via the Makefile to make this program compatible with kernels before -CURRENT as of 2023-02-06 or (the forthcoming) FreeBSD-13.2. (This use of a kernel option in a userland Makefile is not common, but simplifies the pre-compiler conditionals in kbio.h a lot. The line that define COMPAT_FREEBSD13 shall be removed from the Makefile as soon as support of a new kbdcontrol command on an old kernel is no longer deemed necessary.)
The shims are compiled into the kernel for FreeBSD-13 after 2023-02-09 (the merge date for Unicode support in the dead key table) and compatibility shims are supposed to stay there at least until support for FreeBSD-13.1 has ended.