Lars Balker Rasmussen <lars at balker.org> writes: > xmodmap -e 'keycode 67 = Escape' And use kbdcontrol -l mapfile for console mode. See kbdmap(5) for the format of the file and use kbdcontrol -d to dump the existing mapping to stdout.