Replacing CapsLock with Ctrl

The CapsLock key can be remapped relitively easily in Windows using the scancode map. The scancode map is used by Windows to translate from one keyboard event (represented by a scancode) to another. The scancode is stored in the registry at the following entry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\Scancode Map

The format of the entry is as follows:

We can use this entry to map CapsLock (0x003A) to Control (0x001D). The resulting entry would look as follows: 00000000 00000000 02000000 1D003A00 00000000

This registry script will perform the modification for you. Just download and open with RegEdit.