How to Remap Keys with PowerToys Keyboard Manager
In this article
Keyboard Manager in Microsoft PowerToys lets you reassign individual keys, shortcuts, and even swap key functions (like making Caps Lock act as Ctrl) directly in Windows. It works system-wide, so your remaps apply in every app, not just one program. You’ll need PowerToys installed from the official Microsoft Store or the PowerToys GitHub releases page, and you must run PowerToys in the background for the remaps to stay active.
What You'll Need
- A PC running Windows 10 or Windows 11
- Microsoft PowerToys installed (free, from the Microsoft Store or the official PowerToys GitHub page)
- Administrator rights on your PC (PowerToys will ask for elevation when you first set a remap)
Step-by-Step
- Open PowerToys. Search for “PowerToys” in the Start menu and launch it. If it’s already running, you’ll see its icon in the system tray (bottom-right corner near the clock).
- Go to Keyboard Manager. In the PowerToys Settings window, click “Keyboard Manager” in the left sidebar. If you don’t see it, make sure you’re on a recent version of PowerToys (check for updates in the General tab).
- Enable Keyboard Manager. If the toggle at the top of the Keyboard Manager page is off, turn it on. This enables the remapping features. (Note: menu labels can differ slightly by PowerToys version, but the main sections are always visible.)
- Remap a key. Click “Remap a key” (or “Remap keys” in some versions). A new window opens.
- Add a new remap. Click the “+” (plus) button to create a new mapping.
- Choose the physical key. Under “Key,” click the “Select” button (or the drop-down). Press the key you want to remap on your keyboard. For example, press Caps Lock. The key name will appear in the field.
- Choose the action. Under “Mapped To,” click the “Select” button and press the key you want the original key to act as. For example, press Ctrl. You can also pick from a list if you prefer.
- Apply the remap. Click “OK” at the bottom of the window. PowerToys will ask for administrator permission the first time—click “Yes” to allow it. Your remap is now active immediately.
- Remap a shortcut (optional). Back on the Keyboard Manager page, click “Remap a shortcut” if you want to change a key combination (like Ctrl+C to Ctrl+V). The process is the same: add a new mapping, select the original shortcut, then select the new shortcut.
- Test your remap. Open any text editor (like Notepad) and try the remapped key. If you remapped Caps Lock to Ctrl, pressing Caps Lock should now act as Ctrl.
- Keep PowerToys running. Remaps only work while PowerToys is running. You can set PowerToys to start automatically with Windows in the General settings, so you don’t have to launch it manually.
Common Mistakes
- Remapping a key to itself. If you map a key to itself (e.g., A to A), it can cause a loop or do nothing. Always choose a different target.
- Forgetting to enable Keyboard Manager. If you set a remap but it doesn’t work, check that the toggle is on in the Keyboard Manager page.
- Not running PowerToys as administrator. Some remaps (especially those that affect system keys like Windows or Alt) may fail if PowerToys isn’t elevated. The app usually asks for permission, but if you denied it, close and reopen PowerToys with “Run as administrator.”
- Mapping a key that’s already used by another remap. If you map the same physical key twice, the second mapping overrides the first. Check your list of remaps to avoid conflicts.
- Using a laptop with Fn key. The Fn key on many laptops is handled by hardware and cannot be remapped by PowerToys. You can remap other keys, but Fn itself is often not detectable.
Tips
- Use the “Type” button for accuracy. When selecting a key, pressing the actual physical key is more reliable than picking from a drop-down list, because it avoids confusion with keyboard layouts.
- Create a backup of your remaps. PowerToys has an “Export” button (in the Keyboard Manager page) that saves your remaps as a JSON file. Use it if you plan to reinstall Windows or switch PCs.
- Remap Caps Lock to something useful. Many users map Caps Lock to Ctrl or Escape, which is handy for programming or vim-style navigation.
- Test in a safe app first. Before using a remap in your main work, try it in Notepad or a text field to confirm it behaves as expected.
- Use the “Shortcut” remap for app-specific needs. If you want a shortcut to work only in a certain app, you can’t do that with Keyboard Manager alone—it’s system-wide. But you can use PowerToys’ “Shortcut Guide” or other tools for app-specific automation.
Troubleshooting
If your remap isn’t working, try these in order:
- Check that PowerToys is running. Look for the PowerToys icon in the system tray. If it’s not there, launch PowerToys from the Start menu.
- Verify the remap is listed. Open Keyboard Manager and see if your remap appears in the list. If not, re-add it.
- Restart PowerToys. Right-click the PowerToys icon in the tray and choose “Exit,” then reopen PowerToys. This reloads the remaps.
- Run PowerToys as administrator. Close PowerToys, right-click its shortcut, and select “Run as administrator.” This can fix remaps that don’t work in elevated apps (like Task Manager or some games).
- Check for conflicting remaps. If you have multiple remaps that involve the same key, remove the older one and try again.
- Update PowerToys. Go to the General tab in PowerToys Settings and check for updates. Older versions may have bugs or missing features.
- If nothing works, reset all remaps. In Keyboard Manager, click the trash icon next to each remap to delete them, then add them again. This clears any corrupted state.
Frequently Asked Questions
Can I remap keys on a laptop keyboard?
Yes, most keys on a laptop can be remapped, but the Fn key itself is usually not remappable because it’s handled by the laptop’s firmware, not Windows.
Will my remaps work in games?
Yes, remaps are system-wide, so they work in games as long as the game doesn’t use raw input that bypasses Windows key handling. Some games with anti-cheat may ignore remaps, but that’s rare.
Can I remap a key to a mouse button?
No, Keyboard Manager only supports keyboard keys and shortcuts. For mouse button remapping, you’d need a separate tool or your mouse’s software.
Do I need to restart my PC after remapping?
No, remaps take effect immediately after you click OK. No restart is needed.
How do I undo a remap?
Open Keyboard Manager, find the remap in the list, and click the trash icon to delete it. The original key function is restored instantly.
Can I remap a key to type a specific character or string?
No, Keyboard Manager only remaps to other keys or shortcuts, not to text strings. For typing macros, you’d need a different tool like AutoHotkey.