Basically, what I want to achieve is the second example here:

As an example, we can make the space bar work as an additional ctrl key when held (similar to Space2ctrl) with the following sequence of commands.


Or here:

This little hack for X turns the spacebar key into another control key when used in combination. When used alone, it behaves like the ordinary space bar on the key release event. Especially useful with Emacs.



  • Space+x should send Command+X,
  • while Space pressed and released should send one space character.
  • Just out of curiosity, why? Is your control key broken? – Arc676 Nov 27 '15 at 12:47
  • 1
    @Arc676, there should be several whys in the docs I linked to. It’s because I want to avoid Emacs-related RSI. And I’ve been using this setup on Linux, so I’m quite used to it. :) – Michal Rus Nov 27 '15 at 12:51
  1. Install Karabiner.

  2. Place this in your private.xml (~/Library/Application Support/Karabiner)

            <name>Use Space as Command modifier</name>
            <autogen>__KeyOverlaidModifier__ KeyCode::SPACE, KeyCode::COMMAND_L, KeyCode::SPACE</autogen>

    It goes in between the <root> and </root> tags.

    If you want to remap it to Control instead, you can change the KeyCode::COMMAND_L to KeyCode::CONTROL_L.

  3. Launch Karabiner, press ⟳ ReloadXML, and check the box

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .