Load your new keymap in the console (requires root access): sudo loadkeys ~/keymap.new Sed -e '/keycode *54 = /!b r '$HOME'/keymap.return' -e 'd' ~/keymap.dmp > ~/keymap.new You can do this manually in a text editor or use the following commands (copies behaviour from keycode 28 to keycode 54): sed -n '/keycode *28 = /p' ~/keymap.dmp > ~/keymap.return keycode 54 if you want to use right-shift. Now, modify the dumped keymap: You need to copy the behaviour of keycode 28 to the new keycode, i.e. Run the following command to dump your current keymap: dumpkeys > ~/keymap.dmp I would choose R Shift which has the kernel keycode 54. I found this keycode table in a quick Google search.
#Computer not mapping keyboard keys properly serial#
KeyRelease event, serial 34, synthetic NO, window 0x4a00001, Obtain the keycode of the key you want to remap by using the xev command. Otherwise you will have to use an on-screen keyboard (there may be one installed as an Accessibility tool) or use an external keyboard. If you are lucky to have a terminal open, press simultaneously Ctrl+ Shift+ U, then press Shift+ A (uppercase A) to insert the Unicode for 'Enter'. How to press 'Enter' if the key does not work