Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a Mac after five years of Linux. I had remapped "Caps Lock" to "Ctrl" and swapped the "`" with Escape.

I was able to figure out how to convert Caps Lock to a Control, but can't figure out how to do the second. Please suggest a good tool so I don't have to undo many years of muscle memory.

(I use OSX Lion)

share|improve this question
up vote 4 down vote accepted


A preference pane with currently about 1500 remapping options. Includes Backquote(`) to Escape and Escape to Backquote(`).


You could create a custom .keylayout like this:

Esc on the layout above worked with all of the things I tested:

  • OS X UI actions like canceling a dialog and exiting full screen
  • On some websites with keyboard navigation like Google Search
  • As a meta key in

Modifying special keys from a .keylayout usually results in some unexpected issues though.

share|improve this answer
KeyRemap4MacBook works great! Thanks a ton. – skyronic Oct 28 '11 at 6:52

The only way I know of doing this is by using a third party app; BetterTouchTool. Set it up to look like this : enter image description here

Create an applescript with tell application "System Events" to key code 53 and save it. Then add a new shortcut to BTT which runs the script.

share|improve this answer
Hey! This seems like overkill for this, but thanks for letting me know of such a neat tool. I can see a lot of other things I can do with this. – skyronic Oct 28 '11 at 6:53

The inconveniently named KeyRemap4Macbook should do that, without the need for an external applescript.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.