So I have purchased a Stinky Footboard and wish to remap the keys so that when I press forward, back etc it will instead press the wasd keys or whatever I might want to set it to. I had a stroke so I'm unable to use a mouse and keyboard at the same time.
If I use showkey to see the keymapping, with the footboard in vertical mode:
keycode 17 press - Forward keycode 17 release keycode 31 press - Backward keycode 31 release keycode 30 press - Left keycode 30 release keycode 32 press - Right keycode 32 press
I've already tried a solution using xmodmap but learned that xkb is the solution these days. However, they assume you have two working hands so this is a special case.