kbdscan sets the FreeBSD console keyboard in raw scancode mode and
show scancodes of keys pressed and released. These scancodes can then
be used for defining a keymap for the keyboard in the FreeBSD console.
Five seconds of inactivity resets the console to the original mode and quits the program.
Note that kbdscan will only work if it is run directly in the FreeBSD console.
The latest version is here:
Repository and stuff to come.
There are some FreeBSD console keymaps (along with X11 and Linux equivalents) here: