I'm absolutely serious about that "-8", x11 keycodes are simply scancodes increased by 8…
This is no hack or anything, for any reasonably recent linux this will work (evdev keyboard driver).
and even if it's an old kbd driver, most keys will still work as expected.