GoWiki
Index
Sections
Search
Login
wiki
Windows remap keyboard keys
# Windows remap keyboard keys This documentation describes how to remap certain keyboard keys on a Windows system. In this example the "Caps Lock" key will be remapped to NULL. Open `regedit.exe` and browse to `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout` Now add a `REG_BINARY` key and fill in: (Note: it's not possible to copy&paste into the registry window, you may want to import the [registry file](https://wiki.giftfish.de/wiki/Windows+remap+keyboard+keys#registry+file0) at the bottom of this article) ``` 00000000 00000000 02000000 00003A00 00000000 ``` Windows needs a **reboot** to apply the changes. ## Hex string break down The break down for this HEX string is: * The first 16 zeros are needed for initialization. * The `02` in bold represents how many keys you are going to re-map plus 1. * `0000` is the key we actually want Windows to map TO, which in this case is nothing, or 0. * `3A00` is the key we are mapping from, in this case the caps lock key. * The next 8 zeros are required as the null terminator. ## registry file Just open a notepad, paste the following content and save it as "disable-caps_lock.reg". Now open/apply the file and reboot afterwards. ``` 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,02,00,00,00,00,00,3a,00,00,00,00,00 ``` # References https://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/