Currently X key events are translated to keysyms, and I don't believe the scancodes are passed along. This should probably be made an option? evdev events are passed along similarly. but consider handling MSC_SCAN events in some way. See also: - http://lkml.iu.edu/hypermail/linux/kernel/1012.3/01390.html - [evtest](https://wiki.archlinux.org/index.php/Keyboard_input#Using_evtest) displays them