How to Remap the Command Key on a Mac Keyboard
In this article
Remapping the Command (⌘) key on a Mac lets you swap its function with another modifier key—like Control, Option, or Caps Lock—or reassign it to a different action entirely. This is useful if you're used to a Windows keyboard layout, if your Command key is broken, or if you want to trigger specific shortcuts more comfortably. You can do this without third-party software using the built-in keyboard settings, though for more advanced remapping (like making Command act as a different key only in certain apps) you'll need a free tool like Karabiner-Elements.
What You'll Need
- A Mac running macOS (any recent version, though menu labels may differ slightly by version).
- For basic remapping: no extra software—just System Settings (or System Preferences on older macOS).
- For advanced remapping (per-app or more complex swaps): a free, open-source app called Karabiner-Elements (download from the official website only).
Step-by-Step
Method 1: Built-in macOS Keyboard Modifier Remapping
- Open System Settings (on macOS Ventura and later) or System Preferences (on macOS Monterey and earlier). You can find it in the Apple menu () in the top-left corner of your screen.
- Click Keyboard in the sidebar (System Settings) or the Keyboard icon (System Preferences).
- Click the Keyboard Shortcuts… button (or the “Modifier Keys…” button on older macOS—the exact label may vary).
- In the window that opens, look for a section called Modifier Keys. If you don't see it, click the “Modifier Keys…” button at the bottom of the Keyboard Shortcuts list.
- Click the dropdown next to Select keyboard and choose the keyboard you're using (if you have multiple, like an external one).
- Find the row for Command (⌘) Key. Click the dropdown next to it and select the action you want it to perform. For example:
- Control (⌃) – makes Command act as Control.
- Option (⌥) – makes Command act as Option.
- Caps Lock (⇪) – makes Command act as Caps Lock.
- Escape (⎋) – makes Command act as Escape.
- ⌘ Command – keeps it as Command (default).
- If you also want to swap the other keys (for example, make Control act as Command), change those dropdowns accordingly. This is common when switching from a Windows keyboard where the physical Control key is where Command usually is.
- Click OK (or Add if it's a new shortcut) to save. The change takes effect immediately—no restart needed.
Method 2: Advanced Remapping with Karabiner-Elements
- Download Karabiner-Elements from the official website (karabiner-elements.pqrs.org). Do not use third-party download sites.
- Open the downloaded .dmg file and drag the app into your Applications folder, then launch it.
- If prompted, allow the app to install its keyboard extension in System Settings > Privacy & Security (or System Preferences > Security & Privacy). You may need to restart your Mac or re-plug your keyboard.
- In Karabiner-Elements, go to the Simple Modifications tab.
- Click Add item under “From key” and select Command_L (left Command) or Command_R (right Command) from the dropdown.
- Under “To key”, select the key you want Command to become (e.g., Control_L, Option_L, Caps Lock, etc.).
- Click Add item again if you want to swap the reverse (e.g., make Control act as Command).
- The changes apply immediately. You can also use the Complex Modifications tab to create more advanced rules (like remapping only in specific apps), but that requires importing or writing JSON rules—start with Simple Modifications for basic swaps.
Common Mistakes
- Changing the wrong keyboard: If you have both a built-in and an external keyboard, you must select the correct one in the dropdown. Otherwise, the remap won't apply to the keyboard you're actually using.
- Swapping both keys but forgetting to swap back: If you swap Command to Control, but don't also swap Control to Command, you'll lose the ability to use Command shortcuts (like Cmd+C for copy) unless you press Control instead. Decide which layout you want and set both keys accordingly.
- Expecting per-app behavior from built-in settings: The built-in macOS modifier remapping applies globally to all apps. If you need different mappings for different apps (e.g., Command works as Command in Photoshop but as Control in Excel), you'll need Karabiner-Elements.
- Not allowing the keyboard extension: If you use Karabiner-Elements and skip the permission prompt, the app won't work. You must grant Accessibility and Input Monitoring permissions in System Settings > Privacy & Security.
Tips
- Test with a simple shortcut: After remapping, try pressing Cmd+C (or whatever your new Command key is) to copy text. If it doesn't work, double-check your mapping.
- Use Caps Lock as a modifier: Many users remap Caps Lock to Control or Escape because it's easier to reach. You can do this in the same built-in settings.
- Keep a note of your original layout: Write down the default mapping before changing, so you can revert easily if needed.
- For Windows keyboard users: If you're using a Windows keyboard with a Mac, the physical keys are already in different positions. The built-in modifier remapping can swap Command and Option to match the Windows layout (e.g., make the Windows key act as Command).
- Use Karabiner for complex needs: If you want to remap a single key (like making Fn act as a media key) or create a custom shortcut that only works in certain apps, Karabiner-Elements is the way to go. It has a large library of community-made rules.
Troubleshooting
- Remap doesn't work: First, check that you selected the correct keyboard in the dropdown. Then, try unplugging and replugging your external keyboard (or turning Bluetooth off/on for wireless). If it still doesn't work, restart your Mac.
- Karabiner-Elements isn't responding: Make sure you've granted it Accessibility and Input Monitoring permissions. Go to System Settings > Privacy & Security, find Karabiner-Elements, and enable both toggles. If it still fails, quit the app and relaunch it.
- I can't type my password at login: The built-in remapping applies at the login screen, but Karabiner-Elements does not work until after you log in. If you remapped Command to something else and now can't type your password (because you need Command for a shortcut), you can temporarily use the on-screen keyboard or reset the mapping by booting into Safe Mode (hold Shift at startup) and reverting the settings.
- Changes revert after a restart: This is rare with built-in settings, but if it happens, check that you haven't set a conflicting profile in Karabiner-Elements. Also, ensure your Mac is running a recent macOS update.
- Some shortcuts still use the old key: Some apps (especially older ones) may not respect the remapping. In that case, use Karabiner-Elements to force a remap at the hardware level, which works more broadly.
Frequently Asked Questions
Can I remap the Command key to a letter key (like “A”)?
Yes, with Karabiner-Elements you can remap Command to any key, including letters. However, this is usually not recommended because it will interfere with typing. The built-in macOS settings only allow swapping between modifier keys (Command, Control, Option, Caps Lock, Escape).
Will remapping affect all users on the Mac?
No. The built-in macOS modifier remapping is per-user. Each user account has its own keyboard settings. Karabiner-Elements also runs per-user, so other users won't be affected.
I have a Windows keyboard. How do I make the Windows key act as Command?
In System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys, select your keyboard, then change the “Option (⌥) Key” to “Command” and the “Command (⌘) Key” to “Option” (or vice versa) to match the Windows layout. The Windows key on a Windows keyboard is usually recognized as the Option key by macOS, so you may need to swap them.
Can I remap the Command key to a mouse button?
No, the built-in settings only work with keyboard keys. For mouse button remapping, you'd need third-party software like BetterTouchTool or SteerMouse, which are not covered here.
Will remapping break my keyboard shortcuts in apps?
It may, if you swap Command to a different modifier. For example, if you make Command act as Control, then Cmd+C (copy) will become Ctrl+C. Some apps may not support Control-based shortcuts. That's why it's best to plan your mapping carefully, or use Karabiner-Elements to apply changes only in specific apps.
How do I reset everything back to default?
In System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys, click “Restore Defaults” (or set each dropdown back to its original key). In Karabiner-Elements, go to Simple Modifications and delete all items, or click the “Remove all” button.