Alt Key on an External or Windows Keyboard Connected to a Mac (Logitech, Keychron and More)
Quick answer: On a Windows or other external keyboard connected to a Mac, the Alt key acts as Option (⌥) and the Windows logo key acts as Command (⌘). Because the Windows layout puts Alt next to the space bar, the two can feel swapped. Fix it in System Settings ▸ Keyboard ▸ Keyboard Shortcuts ▸ Modifier Keys by choosing your keyboard and swapping Option and Command.
This guide is for anyone who bought a full-size or mechanical keyboard and wants it to feel right on a Mac. For the Alt key on the built-in keyboard, see What Is the Alt Key on a Mac? Where It Is, What Replaces It, and Alt vs Option.
What each key does on a Mac
| Key printed on a Windows keyboard | Acts as on a Mac | Where it sits |
|---|---|---|
| Ctrl | Control (⌃) | Far left of the bottom row |
| Windows logo | Command (⌘) | Between Ctrl and Alt |
| Alt | Option (⌥) | Beside the space bar |
How to swap Option and Command
Open System Settings ▸ Keyboard ▸ Keyboard Shortcuts.
Choose Modifier Keys.
At the top of the panel, select your external keyboard from the dropdown. Settings are stored per keyboard, so your MacBook keyboard stays unchanged.
Set Option to act as Command, and Command to act as Option.
After this, the key beside the space bar on your Windows keyboard behaves as Command, in the same place as on an Apple keyboard.
Keyboards with a Mac/Windows switch
Many mechanical keyboards, including Keychron models, have a physical Mac/Windows switch or a key combination to change layout. Setting it to Mac makes the keyboard send Mac modifier keys, so you may not need to change macOS settings. Keyboards that ship with their own software, such as Logitech's, can also remap keys, so check that software if a key behaves unexpectedly.
Right Alt, AltGr and international layouts
On many non-US keyboards the right-hand Alt key is AltGr, which types extra characters such as @ or the euro sign. On a Mac, AltGr acts as the right Option key, and macOS uses the selected input source to decide which characters Option produces. If a symbol does not appear where you expect, check System Settings > Keyboard > Input Sources and choose the layout that matches the printed keycaps.
Which setup suits you
Keyboard has a Mac/Windows switch: set it to Mac and leave macOS settings alone.
No switch, and you prefer the Apple key order: swap Option and Command in the Modifier Keys panel.
No switch, and you prefer to keep the Windows order: leave everything as it is and learn that Alt is Option and the Windows key is Command.
You want one key to do something different: use a remapping tool such as Karabiner-Elements. See how to remap Windows shortcuts on a Mac.
A mixed approach is common: the physical switch or Modifier Keys panel for Option and Command, and no extra software.
If Alt does nothing
If the Alt key seems dead, work through these checks:
Test the key in a text field with Option+G, which types a © sign on a US layout.
Check that Option is not remapped to something else in the Modifier Keys panel.
Quit remapping or keyboard utilities and test again.
Try the keyboard on another Mac or in Windows to rule out hardware.
The full troubleshooting list is in Alt (Option) Key Not Working on Your Mac? Causes and Fixes.
Keychron, Logitech and other brands
Keychron: most models have a Mac/Windows slider or a short key combination that changes the layout. The exact combination depends on the model, so check the manual if the slider is missing.
Logitech: the keyboard works without software. Logitech's own app can remap keys and set shortcuts per device, so look there if one key behaves differently.
Other mechanical boards: often ship with a Mac keycap set. The legends may say Alt or Win while the keys still send Option and Command.
Why the setting is stored per keyboard
The Modifier Keys panel lists each connected keyboard separately, which keeps your MacBook's built-in layout unchanged. The keyboard only appears in the list while it is connected, so connect it first. If the swap seems to disappear, the keyboard may be seen as a new device, for example after changing the USB receiver, and you may need to repeat the setting.
Alt key in Excel
Even when the key works, Option does not open the Excel Ribbon the way Alt does on Windows. Excel for Mac has no Ribbon KeyTips, so sequences such as Alt, H, V, V are not available natively. See What Is the Alt Key on a Mac? Where It Is, What Replaces It, and Alt vs Option and Mac Modifier Keys Explained: Command, Option, Control, Shift and Fn.
FAQs
Does a Windows keyboard work on a Mac?
Yes. It works without drivers. Alt acts as Option, the Windows key acts as Command, and Ctrl acts as Control.
Why are Option and Command in the wrong order?
The Windows layout puts Alt beside the space bar and the Windows key to its left. Apple puts Command beside the space bar and Option to its left. Swap them in the Modifier Keys panel if you prefer the Apple order.
Do I need software to use an external keyboard on a Mac?
No, unless you want extra features from the keyboard maker, such as custom key layers.
How do I know which key is Command on a Windows keyboard?
It is the Windows logo key by default. After a swap, it is the Alt key.
Why does Excel not respond to Alt on my external keyboard?
Alt is Option on a Mac, and Excel for Mac does not use Option to open the ribbon. Read alt key shortcuts in Excel for Mac for what each Windows Alt shortcut becomes.
Does the Print Screen key work?
Not as on Windows. Screenshot shortcuts on a Mac use ⇧⌘ 3, ⇧⌘ 4 and ⇧⌘ 5. Details are in where every key went.
