How to remap keys on Windows and Mac
Updated October 2026 · TapTest guides
Remapping a key means telling your computer to treat one physical key as if it were another. It is one of the most useful things you can do with a keyboard, and most people never try it. Whether you want to revive a dead key, move Caps Lock somewhere more useful, or fix a layout that puts a symbol in an awkward spot, both Windows and macOS can do it, and in most cases without installing anything unusual.
Before you start, it helps to know exactly which key sends which signal, especially if a key is behaving oddly. Open the keyboard tester and press the key in question to confirm what the system actually sees. That one check often changes the plan, because a key that seems broken sometimes turns out to be sending the wrong code, which remapping can solve outright.
Remapping on Windows with PowerToys
The easiest route on Windows is Microsoft PowerToys, a free official toolkit. Once it is installed, open it and find the Keyboard Manager section. Turn it on, then choose "Remap a key". You pick the physical key you want to change on the left and the key you want it to produce on the right, and the change takes effect immediately with no restart. PowerToys also lets you remap whole shortcuts, so you can turn one key combination into another.
PowerToys is the right choice for most people because it is reversible, it does not touch anything permanent, and you can disable it in a second if something goes wrong. The one caveat is that it only works while PowerToys is running, so the remap disappears if the program is closed or the tool is turned off.
Making a Windows remap permanent
If you want a remap that survives even when no software is running, the change has to live in the Windows registry. Editing the registry by hand is risky, so the safe way is a small free tool called SharpKeys, which writes the remap into the registry for you through a simple list. You add a mapping, click write, and reboot once. Because this change is baked into Windows itself, it applies at the login screen and for every user, and it keeps working without any program open in the background. The trade-off is that you must open SharpKeys again and remove the mapping to undo it, so it is best for changes you are confident about, like retiring Caps Lock.
Remapping on macOS
For the common modifier keys, macOS has a built-in option that needs no downloads. Open System Settings, go to Keyboard, and click "Keyboard Shortcuts" and then "Modifier Keys". There you can swap Caps Lock, Control, Option and Command among themselves, which is enough to solve the most frequent complaints, especially for people switching between Mac and Windows who want the modifiers in familiar places. If you have more than one keyboard connected, you can set this per keyboard, which is handy when you use an external board with a Mac layout.
Going further on macOS with Karabiner-Elements
When you need to remap ordinary letter and symbol keys, or build more advanced rules, the standard tool is Karabiner-Elements, a well-established free app. It can remap almost any key to almost any other, create different behaviour for a key when tapped versus held, and even apply different mappings per application. It is far more powerful than the built-in option, and with that power comes a steeper learning curve, so start with a single simple rule and build up once you see how it behaves.
Per-application and gaming remaps
Sometimes you only want a remap inside one program. Many games have their own key binding menus, and you should always check there first, because an in-game binding is cleaner than a system-wide remap and will not follow you out of the game. For non-game software, tools like AutoHotkey on Windows let you write small scripts that only change keys for a chosen application, which is popular with people who want shortcuts tailored to a specific editor or tool. The principle is to remap at the narrowest level that solves your problem, so you are not surprised later by a key behaving differently everywhere.
A practical example: fixing a dead key
Suppose your right Shift has stopped working but the rest of the board is fine. Rather than replace the keyboard, you can remap a key you rarely use, such as the menu key or right Control, to act as a second Shift. First confirm in the tester which keys still respond, then map a healthy key to Shift using PowerToys on Windows or Karabiner on macOS. It is not a permanent fix for failing hardware, but it can keep a keyboard useful for months while you plan a replacement.
Verify every change
After any remap, go straight back to the keyboard tester and press the remapped key. You should see it report as its new identity. This takes ten seconds and saves you from discovering halfway through an important document that the mapping did not apply the way you expected. If the test shows the old behaviour, the remap tool is probably not running, or the change needs the reboot that permanent registry edits require.
Common questions
Will remapping damage my keyboard? No. Remapping only changes how software interprets the key. Nothing physical changes, and every method here is reversible.
Do remaps work in games? System-wide remaps usually do, but some games read the keyboard at a low level and can ignore them. Where possible, use the game's own binding menu instead.
Can I swap two keys with each other? Yes. Map the first key to the second and the second key to the first. Both PowerToys and Karabiner handle this cleanly.
Why did my PowerToys remap stop working after a restart? PowerToys has to be running for its remaps to apply. Set it to start with Windows, or use SharpKeys for a change that does not depend on any program.
More guides
- Why is a key on my keyboard not working?
- ANSI vs ISO vs JIS: keyboard layouts explained
- How to test a game controller on PC
- Keyboard ghosting and N-key rollover (NKRO) explained
- Mechanical keyboard switches explained
- Typing speed test: what is a good WPM?
- How to clean a mechanical keyboard
- How to fix controller stick drift
- Wired vs wireless keyboards for gaming
- Membrane vs mechanical keyboards
- Average typing speed by age and profession
- What is keyboard polling rate?
- Why is my keyboard typing the wrong characters?
- The best keyboard layout for programming
- Controller not detected on PC: fixes
- How to test a mouse
- How to fix a mouse that double-clicks
- How to check a monitor for dead pixels
- How to test a webcam
- How to test a microphone
- Back to the keyboard & controller tester