Ubuntu – How to make a key on the keyboard do *nothing*

keyboard

My right control key on my keyboard sticks. I hit it accidentally often enough that I'd like to make it do absolutely nothing when it's hit. Is this possible?

Best Answer

Use xev to find out what the keycode is. My Control_R is 105. Then run this:

xmodmap -e 'keycode 105 = NoSymbol'

If that works, head into the start-up applications dialogue and add a new entry to run that command on boot.

Related Question