I hit the Escape key plenty of times a day. Vim, Irssi, cancelling dialogs… Reaching out to the top left corner can get quite annoying. An easy fix for this is mapping the otherwise almost useless Caps Lock key to work as Escape. This can be quite easily achieved by first mapping Caps Lock to Control and then mapping Control to act as Escape. Here’s how to do that in OS X 10.9:
Map Caps Lock to Control First, open System Preferences and Keyboard settings. Open the Modifier Keys -popup by hitting this button:
Install Karabiner To map Control to Escape, install Karabiner (ex-KeyRemap4MacBook). Karabiner can be used to configure a bunch of stuff, but we’re interested in…
Configure Control_L to act as Escape On the Change Key -tab, type
send escape to the search box:
The option we’re after is
Control_L to Control_L (+ When you type Control_L only, send Escape). Enable it and voilà, your caps lock should now work as Escape when tapped! As an added bonus, it doubles as more easily accessible Control key when it’s held down and used in a keyboard shortcut with another key(s). If you wonder why your keyboard repeat rate seems different after installing Karabiner, it’s because Karabiner overrides OS X’s Key Repeat settings. You can fix this by adjusting the key repeat settings in Karabiner’s Key Repeat tab.