76

in my keyboard the command key is mapped to the windows key (I'm using a regular PC keyboard) so I only have a left command, because the space on the right is occupied by the useless Fn key.

I've used Ukelele and also edited keyboard mappings but that's for printable characters, doesn't actually allow you to map modifier keys on the keyboard.

Thanks!

quack quixote
  • 43,504
Petruza
  • 3,931

4 Answers4

119

The answer was as easy as this:

  • Click the Apple logo in the top left of your screen
  • Select "System Preferences"
  • Select "Keyboard"
  • Make sure the "Keyboard" "tab" is selected
  • Select the "Modifier Keys..." button in the bottom right of the window
  • Select keyboard: "USB Keyboard" (probably - if you're like me, you're trying to configure a keyboard that's plugged in to your laptop)
  • Switch the "Option" and "Command" values

enter image description here

Petruza
  • 3,931
8

DoubleCommand can remap keys, you just need to know the Mac keyboard equivalents on your keyboard:

enter image description here

DoubleCommand is free and open source

Gareth
  • 19,080
6

I recommend this keymap software for Mac OSX: http://pqrs.org/macosx/keyremap4macbook/ I used doublecommand before, feel this is better.

Alex
  • 61
4

If you're trying to do something that the built-in OSX preferences or apps like DoubleCommand can't change — like remap right-control to command but leave left-control as is — you can do that with a little Terminal hacking:

http://hints.macworld.com/article.php?story=20060825072451882

Dan M
  • 141