For disabling any physical key on the keyboard is a registry entry too.
It's in [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
You create a key with the name Scancode Map
. It can redirect any key to another key or disable it.
That key is a hex-value with the following meaning:
00,00,00,00 Header: Version. Set to all zeroes.
00,00,00,00 Header: Flags. Set to all zeroes.
03,00,00,00 3 entries in the map (including null entry).
00,00,xx,yy key xx xx -> Disable (0x00) but can also be another key
00,00,xx,xx key yy yy -> Disable (0x00).
00,00,00,00 Null entry.
To completely disable the CTRL you only need two entries (plus null).
The Left Left-CTRL (1d 00) and Right-CTRL (1d e0).
So you can create a .reg file like this: Disable_CTRL-key.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,1d,00,00,00,1d,e0,00,00,00,00
Execute (double click) the .reg file and log out and back in (or restart your computer). Now your CTRL-keys are completely disabled.
Other useful keys to know:
1d 00 Left Ctrl
1d e0 Right Ctrl
38 00 Left Alt
38 e0 Right Alt
5b e0 Left Windows Key
5c e0 Right Windows Key
5d e0 Windows Menu Key
If you are not comfortable with changing the registry or you want other keys too you can use the program SharpKeys to edit them more easily. It also has a convenient list of all keys so you can just add them in a window.
![SharpKeys](../../I/static/images/dfa6394cebb68843e468df74957df4edb6da9179f599c3ee5dc8b0d55ae020d7.png)
In what programs do you want to disable the ctrl+x? Do you mind that ctrl+fx is also disabled? You can follow the instructions on this page to completely disable the ctrl-key using the scancode for ctrl instead of win-key (but it will also disable ctrl+fx). http://www.askvg.com/tip-how-to-disable-all-win-keyboard-shortcuts-hotkeys-in-windows/
– Rik – 2016-10-05T21:36:18.647