The xmodmap tool is used to modify keymaps and pointer button mappings in X. This is from modular Xorg.