udev - How do I change the keymap of a single device (Logitech presenter)? - Ask Ubuntu
: nifty, udev lets you remap USB "keyboard" gadgets randomly. this may be handy for my new cheapo USB foot pedals
pedals usb hid interface gadgets remapping ubuntu linux udev
I've some related notes here http://www.pixelbeat.org/docs/xkb_remap/