kbbind is a utility for remapping keys and key combinations under Linux. Keys may be mapped to other keys and commands may be executed on press/autorepeat. Each kbbind process reads events from a single keyboard using evdev and may be used for configuring remote controls, special keyboards, etc.
The man page is available in HTML format here. You will need the 'uinput' kernel module loaded in order to map keys.