Super User is a question and answer site for computer enthusiasts and power users. 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

I want to be able to temporary disable Ctrl / Alt / F1-F12 keys on Windows 7 computer.

So that only letters and numbers keys could be pressed.

Is there a tool that allows to do that quickly and then easily revert it back?

share|improve this question
You could map those keys to a program that does nothing, like wscript //b. Might affect focus / active window though... – ixe013 Jan 31 '13 at 20:26
Install a new keyboard driver and use its configuration parameters. – mdpc Feb 1 '13 at 3:29
up vote 1 down vote accepted

First I thought this question is a simple software recommendation question. How wrong I was.

Google only knows KidKeyLock which blocks some keys.

enter image description here

There seems to be a lack of tools to block custom keyboard keys and key combinations.
Even doesn't know any similar software

share|improve this answer
While KidKeyLock is trying to install bunch of adware with it (and does not block custom keyboard keys), it does the "minimum required" job for me. Thank you! – Yuri Salimovskiy Feb 1 '13 at 9:01

You could use an AutoHotKey script to setup something like this:

RCtrl::return    ; disables Right Contrl key

Once running you can click the icon in the system tray and click 'Suspend Hotkeys' to turn it off.

PS: editing the script to test it was quite difficult once I turned off the shift and control keys... :)

share|improve this answer
Yes, checked AutoHotKey website - but I'd rather prefer something pre-configured, sort of single-click utility – Yuri Salimovskiy Feb 1 '13 at 8:57
1) Install AHK. 2) Save the text above as DisableKeys.ahk 3) double click it 4) ??? 5) Profit! – Edward Feb 1 '13 at 16:19

Windows has a built-in scancode mapper facility if you do not want to use 3rd-party tools.

Run the following command as Administrator then reboot the PC to disable F1-F12 keys:

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t "REG_BINARY" /d "00000000000000000D00000000003B0000003C0000003D0000003E0000003F000000400000004100000042000000430000004400000057000000580000000000" /f

To restore the default mapping (also run as Administrator then reboot):

REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .