17

I just bought a Logitech USB keyboard (Logitech K120, if that matters.) It's a Windows keyboard, so it has a Windows key and an alt key. The Windows key maps to Command, and the Alt key maps to option. The keys are reversed from their positions on a normal Mac keyboard. It's driving me nuts.

I'm running 10.12.1 (Sierra)

Is there any way to remap them, for this specific keyboard?

klanomath
  • 66,391
  • 9
  • 130
  • 201
Duncan C
  • 520

4 Answers4

22

You can change the functions of the modifier keys (Caps Lock, Control, Option, Command) in System Preferences -> Keyboard -> Modifier Keys.

If you have more than one keyboard, the setting window allows you to select and set separate mapping for each one:

enter image description here

techraf
  • 3,958
  • 2
    Doesn't seem to apply to Mojave with a bluetooth keyboard. Any ideas? – Sinjai Apr 30 '19 at 18:51
  • 1
    This worked for me as I had the same issue as @Sinjai https://apple.stackexchange.com/a/342863/358510 – sjakubowski Feb 15 '20 at 01:06
  • Yup, I ended up using Karabiner Elements too. Works great, though multi-key changes can be a pain. The good news is there is a marketplace of sorts where you can download those. It's been a lifesaver. – Sinjai Feb 15 '20 at 15:25
  • The problem with this solution is that it switches the keys on the BT keyboard as well as on the laptop, so that when you go mobile the keys are incorrectly switched. If you always use the BT keyboard this may be fine, but if you mix between that and the laptop keyboard then it will be frustrating. The next answer below about switching modes on the Logitech keyboards works better for the mixed mode. – jacob-ogre Jan 05 '22 at 12:34
16

Note that some Logitech keyboards, like the K850 or Craft, allow swapping mode via pressing and holding for 2-3 seconds.

  • fn+o for mac layout
  • fn+p for pc layout

Source: https://images-eu.ssl-images-amazon.com/images/I/B1dTBxzD3hS.pdf

qwerty
  • 123
yairchu
  • 272
  • 2
    Work on Ergo K860! Tip: it's a LONG PRESS, you have to hold the combination for 2-3 seconds. – Stan Sep 11 '21 at 08:17
  • 1
    I can confirm that this works on Logitech Craft. For some reason, the layout switched to PC layout after upgrading to macOS Moneterey. – binford Dec 10 '21 at 09:37
6

Although the accepted answer should have worked, but in my case it didn't. I have the same Logitech USB Keyboard.

What worked for me?

  1. I Installed Karabiner-Elements
  2. Then i swaped the keys.

enter image description here

And within a second, everything was back to normal :) Hope it helps.

Keshu R.
  • 161
-4

Have you looked into using a keyboard remapping program such as Sharp Keys?

Jay
  • 22