Comment Modifying X Keymap (Score 1) 12
The program you want is called xkeycaps. It lets you select a keyboard from a database of lots of different ones, and then writes out a file that is readable by xmodmap (the program that loads modifications to the keyboard map into X).
Get it at: http://www.jwz.org/xkeycaps/
So, just use xkeycaps to set up the keys to do whatever you want, save to a file (say, ~/.xmodmap-localhost) and put in your
xmodmap ~/.xmodmap-localhost
You should read the xkeycaps man page after you install it, it sheds a lot of light about keyboards and how X handles keys. Good luck.