November 26, 2026
How to remap keys on Mac
Open System Settings, click Keyboard, then Keyboard Shortcuts, then Modifier Keys, and choose a new job for Caps Lock, Control, Option or Command. That is the only key remap in System Settings. To make Home, End, F5 or a mouse button send a different shortcut, one line per key in a hotkey file does it.
Remap modifier keys in System Settings
- Open the Apple menu, choose System Settings, click Keyboard in the sidebar.
- Click Keyboard Shortcuts.
- Click Modifier Keys in the sidebar.
- Click the pop-up menu of a key, for example Caps Lock.
- Choose the job it gets, for example Control, or No Action to switch the key off.
Restore Defaults in the same window brings the original keys back.
The remaps people make most:
| Keyboard | Change | What you get |
|---|---|---|
| Any | Caps Lock to Control | Control under the little finger |
| Any | Caps Lock to No Action | No more capitals by accident |
| Windows keyboard | Option to Command, Command to Option | Alt next to the space bar works as Command, as on a Mac |
On a MacBook the top row sends brightness and volume. For plain F1 to F12 select Use F1, F2, etc. keys as standard function keys under Keyboard Shortcuts, Function Keys.
Remap any other key with Hotkeys
System Settings stops at the modifier keys. Hotkeys makes a key send another shortcut, in every app or only in the ones you name. A line is the key, a space, and what it does. sendKeys sends a shortcut to the app in front.
EDITORS = currentApp("com.apple.TextEdit", "com.apple.Notes")
// Home and End go to the start and end of the line, as on Windows
home if EDITORS sendKeys("command-left")
end if EDITORS sendKeys("command-right")
// F5 reloads the page in Chrome and Safari
f5 if currentApp("com.google.Chrome", "com.apple.Safari") sendKeys("command-r")
// the side buttons of the mouse switch tabs in Chrome
mouse4 if currentAppChrome() sendKeys("control-shift-tab")
mouse5 if currentAppChrome() sendKeys("control-tab")
A key with an if stays untouched in every app the line does not name, so in a browser Home and End keep their own job. Add the apps you type in to EDITORS by their bundle id. To find one, add the line ^!w displayActiveWindowInfo(), reload, and press Control Option W in the app.
- Download Hotkeys and open it. The App Store edition, Hotkeys Lite, cannot send keys or use mouse buttons.
- Switch it on under System Settings, Privacy & Security, Accessibility.
- Click its icon in the menu bar and choose Edit config.
- Paste the lines and save.
- Choose Reload in the same menu.
Every shortcut in one text file, a key per line. The first 50 hotkeys are free.
A key can also open an app instead of sending a shortcut, see how to open an app with a keyboard shortcut.
What Hotkeys does not do
It does not change what a key is for the whole Mac. Caps Lock is not one of its keys, and there is no tap versus hold and no layers. That is remapping one level lower, Karabiner-Elements does it, and the two run side by side. A remapped key sends a shortcut, so it works where the app in front knows that shortcut. There is no window to click remaps into, you edit the file and reload. It needs macOS 14 or later. Without a license the first 50 hotkeys of the file load, with no time limit.
New keys for the menu commands of an app are in how to create custom keyboard shortcuts on Mac.
Apple's pages on this: change the behavior of the modifier keys, use the function keys on Mac.
Questions
How do I remap keys on an external keyboard on Mac?
Modifier Keys in System Settings changes its Caps Lock, Control, Option and Command. Home, End, F5 and the other keys of a Windows keyboard take a line each in a hotkey file.
How do I use a Windows keyboard on a Mac?
Alt works as Option and the Windows key as Command. For Command next to the space bar, set Option to Command and Command to Option in Modifier Keys.
Can I remap keys on a MacBook keyboard?
Yes, in the same Modifier Keys pane. For F1 to F12 without holding Fn, turn on Use F1, F2, etc. keys as standard function keys under Function Keys.
Do I need Karabiner to remap keys on Mac?
Not for the modifier keys or for a key that sends a shortcut. Karabiner-Elements is for Caps Lock as Hyper, tap versus hold and layers.
Every shortcut in one text file, a key per line. The first 50 hotkeys are free.
More guides
- How to force quit on Mac with a keyboard shortcutOption Command Esc opens Force Quit on any Mac. The other built in ways, and one key that force quits a hung app with no window to click.
- Which Apple computer shortcuts to learn first on a MacThe Mac keyboard shortcuts used every day, the extra keys of a MacBook, how to change one in System Settings and add keys Apple does not have.
- How to open an app with a keyboard shortcut on MacmacOS has no setting for it. The Shortcuts app does it in a minute per app, a hotkey file in one line per app.
- How to create custom keyboard shortcuts on MacTwo ways to make your own Mac keyboard shortcuts - App Shortcuts in System Settings for menu commands, one line of text for everything else.