Change Command_R to Shift+Alt I am trying to change my right command key to be ShiftAlt. This is because it gets annoying to press AltShift8 to get a "{", and i never use the right command any way.

I have been trying to do this using Karabiner, but i have not been able to map one key to multi key (can get the Command_R to be either Alt or Shift), and i can not find any documentation on how to do this.
Can any one help me with my settings file to get this to work?

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
    &lt;item&gt;
        &lt;name&gt;Change Right Command Key to Shift Alt&lt;/name&gt;
        &lt;identifier&gt;private.right_command_to_shift_alt&lt;/identifier&gt;
        &lt;autogen&gt;
            __KeyToKey__ 
            KeyCode::KEY_8, ModifierFlag::COMMAND_R, 
            KeyCode::KEY_8, KeyCode::SHIFT_L, KeyCode::OPTION_L
        &lt;/autogen&gt;
        &lt;autogen&gt;
            __KeyToKey__ 
            KeyCode::KEY_9, ModifierFlag::COMMAND_R, 
            KeyCode::KEY_9, KeyCode::SHIFT_L, KeyCode::OPTION_L
        &lt;/autogen&gt;
    &lt;/item&gt;
&lt;/root&gt;
There are some errors in your private.xml like SHIFT_L/OPTION_L are no KeyCodes but ModifierFlags. The | to link the 2 modifiers was just guessing (and luck).

Use this xml snippet instead:

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
    &lt;item&gt;
        &lt;name&gt;Change Right Command Key to Shift Alt&lt;/name&gt;
        &lt;identifier&gt;private.right_command_to_shift_alt&lt;/identifier&gt;
        &lt;autogen&gt;
            __KeyToKey__ 
            KeyCode::KEY_8, ModifierFlag::COMMAND_R, 
            KeyCode::KEY_8, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L
        &lt;/autogen&gt;
        &lt;autogen&gt;
            __KeyToKey__ 
            KeyCode::KEY_9, ModifierFlag::COMMAND_R, 
            KeyCode::KEY_9, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L
        &lt;/autogen&gt;
    &lt;/item&gt;
&lt;/root&gt;


Tested with a german keyboard, danish keyboard layout, Mac OS X 10.7 and KeyRemap4MacBook:

{}{}{}{} :-}


Please don't forget to reload the xml in the Change Key tab in Karabiner/KeyRemap4MacBook (that's the same but different named app for Mac OS X &lt; 10.9) after applying the changes in the private.xml.