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'm currently remapping some of the keys on my MacBook using KeyRemap4Macbook - in that process I need to remap the keys using this xml-file, namely private.xml, that is referenced here:

This is an example of how private.xml looks like:

<?xml version="1.0"?>
    <name>Swap Space and Tab</name>
    <autogen>--KeyToKey-- KeyCode::SPACE, KeyCode::TAB</autogen>
    <autogen>--KeyToKey-- KeyCode::TAB, KeyCode::SPACE</autogen>

Does anyone know where I find a chart of the keycodes referenced in the XML, the capitalized words (SPACE, TAB)?

share|improve this question

Based on this answer, key codes which you are looking for are:

kVK_Tab = 0x30, kVK_Space = 0x31,

See lines 269, 270.

Also there is an application which can show you key codes in a more friendly way.

share|improve this answer

Clicking on the "basic"-tab on the linked webpage, shows a link (List of KeyCode) to a on their GitHub repository.

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.