Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
If you put 'keycode 105 = NoSymbol' in ~/.xmodmap, your session manager should ask you to automatically apply it on next startup. – Jacob May 18 '11 at 18:10
Oli - Thanks so much. The command works beautifully. I did add a Startup with the command "xmodmap -e 'keycode 105 = NoSymbol'" but it didn't work for some reason. Any ideas? Jacob - Will it hurt anything if I create ~/.xmodmap myself? I don't seem to have one already. – begtognen May 20 '11 at 15:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.