I would like to swap the right- key with the right- key.

Microsoft Natural 4000

KeyRemap4MacBook's EventViewer shows that Alt Gr key acts as the left- (Command_L in EventViewer), whereas I'd like to be the right- (Command_R).

This is what it look like in EventViewer: first 2 lines are from left-, next 2 lines are from right- (with the same 0x37 code): enter image description here

How can I get the right- key to register as Command_R (0x36) instead of Command_L (0x37)?

About the keyboard

It's the Microsoft Natural Ergonomic Keyboard 4000 with its drivers installed and setup like this: enter image description here

I'll try my luck with uninstalling the drivers (which don't cause kernel panics anymore, as described here).

  • What kind of keyboard are you using? – Daniel Jun 15 '13 at 0:22
  • @DanielLawson, it's a Microsoft Natural Ergonomic Keyboard 4000; I'll put it (back) into question. – Blaz Jun 15 '13 at 9:28
  • It looks like the Op answered his/her own question. "Courteous", please mark your answer as the Answer and/or remove the Bounty. – jimtut Jun 18 '13 at 17:45

Why didn't it try this before? Removing Microsoft's drivers was the solution! Right-ALT now acts as Option_R out-of-the-box (and isn't affected by swapping CMD/ALT with OPTION/Windows key on the left side).


Hopefully I misunderstood the question, but did you, um, try remapping them?

    <name>Swap Command_L and Command_R </name>
    <autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::COMMAND_L</autogen>
    <autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::COMMAND_R</autogen>

If the problem is that you are not using a Mac keyboard and both L and R are sending the same Keycode, then, as stated in the KeyRempap4MacBook FAQ:

If you are using [non-Apple] vendor's keyboard drivers, KeyRemap4MacBook may not work properly. Please uninstall vendor's keyboard drivers.

  • Yes, I did try to remap them by ticking checkmark next to Commmand_R to Option_R option in KeyRemap4MacBook's frontend ... which surely translates into something alike your XML (and which also works on a MacBook Air). You're also correct on the 2nd part: the keyboard is the Microsoft Natural Ergonomic Keyboard 4000, with its drivers installed (I've updated the question). – Blaz Jun 15 '13 at 9:39

You must log in to answer this question.

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