Remapping CAPS to Escape on Windows 7 without SharpKeys

I want to remap CAPS to escape (I use escape functionality all the time in many programs), but the two suggestions that seem to pop up are:

  1. Hot Keys (which even the people proposing say is a pain)
  2. SharpKeys - which Norton is reporting as a malicious site now

Are there any other suggestions?


Autohotkey can do this. It's quite trivial.

Make a file with the extension .ahk:

Capslock::Esc

Just double click to run, once you have installed Autohotkey.

It's really that easy. You can compile the script into a executable (.exe) to make it portable with the compiler that comes with Autohotkey.

You'll have to run this at startup somehow if you won't want to manually run it every time you restart. Adding a shortcut to the script to the Startup folder in the Start Menu works.


If you don't feel like installing Autohotkey, I've compiled the executable and uploaded it to MediaFire. If you don't trust me, go ahead and make one yourself using the above script.


Autohotkey themselves provide some advantages and disadvantages of using this method compared to remapping via changing some registry keys (which is what SharpKeys does, and what Piskvor describes). They also provide instructions, specifically:

  • Use a (free) program such as KeyTweak
  • Manually editing the registry, using a .reg file as described here

The remapkey.exe program included in the Windows Server 2003 Resource Kit Tools mentioned in this article works nicely in Windows 7. The techrepublic article has pictures but following is a quick summery of how to remap esc to caps.

After installing the Windows Server 2003 Resource Kit Tools:

  1. Open the run dialog by pressing Win+R
  2. Type 'remapkey.exe' and press enter
  3. Drag-and-Drop the Base Keyboard's 'Esc' button from the to the Base Keyboard's 'Caps' button.
    • Note: after releasing the 'Esc' button over the 'Caps' button on the Base Keyboard the Remapped keyboard should reflect the change.
  4. Click the "Save and Exit" button. (it is the first icon on the upper left.)
  5. Click through the warnings.
  6. Reboot (this is windows, after all).
  7. Enjoy your remapped keys without needing an extra service running all the time!