Skip to content

How-ToOS

How to Remap Keyboard Keys in Windows 11 with SharpKeys

SharpKeys is a free, open-source app that remaps or disables keyboard keys in Windows 11 by editing the Scancode Map registry value. We explain how it works, what it can't remap, how to install it, add and write mappings, and how to undo a remap that locks you out.

By , Systems & Technical Editor

4 min read

How to Remap Keyboard Keys in Windows 11 with SharpKeys

If one key on your keyboard is in the wrong place, gets hit by accident or simply isn't useful to you, Windows can swap it for another key without any software running in the background. The catch is that the setting lives in a binary registry value. SharpKeys is a small, free, open-source app that edits that value for you, so you can remap or turn off keys from a simple list instead of typing hex codes into Registry Editor.

This guide is based on the SharpKeys GitHub project page and FAQ, the SharpKeys source code, and Microsoft's documentation for the Windows Scan Code Mapper, all checked on 2 December 2026.

How SharpKeys works

SharpKeys doesn't remap anything itself. Its developer says it "simply exposes a Registry key that controls how Windows remaps keys". That value is called Scancode Map and sits under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout. Microsoft's documentation explains the consequences:

  • It needs a restart. "Once the map is stored in the registry, the system must be rebooted for the mappings to take effect." SharpKeys' own instructions say to log out and back in, or reboot.

  • It applies to everyone. Mappings "apply to all users" and "always apply to all keyboards connected to the system". You can't have one layout for your laptop keyboard and another for a plugged-in one.

  • Nothing runs in the background. Once written, the remap is handled by Windows, so you can close or even uninstall SharpKeys afterwards.

What it can and can't do

SharpKeys can map an entire key to any other key, swap two keys (for example Left Windows and Left Ctrl), map several keys to the same key, and turn a key off entirely.

It can't map a combination such as Ctrl+C to a single key, map mouse clicks, or remap keys that never reach Windows. The FAQ says most Fn keys and some hardware volume buttons are handled by the keyboard itself, so Windows never sees them. It also can't remap keys that send a "triple-byte" scancode (shown as six characters, such as E0_1F65), including the Copilot key, which the developer says is sent as "Ctrl + Windows + F23". For those, the FAQ points you to an active remapper such as Microsoft PowerToys or AutoHotkey; see our guide to customising the Copilot key.

Step 1: install SharpKeys

The current release on GitHub is SharpKeys 3.9.4, published in April 2022. You can get it three ways:

  1. GitHub releases - download sharpkeys394.msi for x64 or x86 PCs. The project notes the MSI "does not work on ARM or ARM64", so use the ZIP file on an ARM-based Windows PC; the ZIP also works from a USB stick without installing.

  2. Microsoft Store - the project says the same MSI is available there.

  3. winget - open Terminal and run winget install -e RandyRants.SharpKeys. Our winget guide explains the basics.

Step 2: back up first

Because a bad remap can lock you out (more on that below), it's worth having a fallback. Our guide to backing up the registry in Windows 11 covers that. SharpKeys can also save your mappings to a file with Save keys... and load them again with Load keys....

Step 3: add a mapping

  1. Open SharpKeys from the Start menu and click Add.

  2. In the Map this key list on the left, pick the key you want to change. You can scroll the list or click Type Key and press the key.

  3. In the To this key list on the right, pick what it should become. To disable a key, choose -- Turn Key Off (00_00) at the top of the list.

  4. Click OK. Repeat for any other keys. To swap two keys, add two mappings: A to B and B to A.

Two quirks from the FAQ: Type Key can't detect Alt (Windows sends it to the system menu instead), so find Left or Right Alt under the "Special" entries in the list. And if Type Key shows 00_100, that key is being captured by hardware or a driver and can't be remapped.

Step 4: write to the registry and restart

Click Write to Registry and wait for the confirmation, then close SharpKeys and sign out and back in, or restart. Your remap is now active for every account and keyboard on the PC.

To change it later, open SharpKeys, edit or delete the mapping and write to the registry again. Delete All clears the list, but SharpKeys warns that your registry won't be updated until you click Write to Registry again.

If you remap a key you need

The FAQ is blunt: SharpKeys will not "protect you from yourself". If you turn off a key you need for your password or for Ctrl+Alt+Del, try the on-screen keyboard from the sign-in screen's accessibility options, plug in another USB keyboard, or start Windows in Safe Mode. From an administrator Command Prompt, this command deletes the mapping:

reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map"

Restart afterwards. Microsoft confirms that to remove mappings you "remove the Scancode Map registry value and reboot".

If you want per-app shortcuts or combinations instead, see SharpKeys vs PowerToys Keyboard Manager, and our best free keyboard and mouse remapping software round-up. If your keyboard supports VIA, you can also remap it in firmware so the change follows it to any PC.

The bottom line

SharpKeys is the simplest way to make a permanent, system-wide key remap in Windows 11: pick a key, pick its replacement or turn it off, click Write to Registry and restart. Nothing has to keep running, but it only handles whole keys that Windows can see, so use PowerToys or AutoHotkey for shortcuts, Copilot or Fn keys, and keep the reg delete command handy in case you disable something you need.

Sources

  1. 01RandyRants (GitHub), SharpKeys project README and FAQ
  2. 02RandyRants (GitHub), SharpKeys v3.9.4 release
  3. 03RandyRants (GitHub), SharpKeys source code (Dialog_Main.cs)
  4. 04Microsoft Learn, Keyboard and mouse class drivers (Scan Code Mapper)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Stream Vertical Video in OBS Studio with Aitum Vertical

How-To

How to Stream Vertical Video in OBS Studio with Aitum Vertical

Want to stream to TikTok, YouTube Shorts or Instagram in 9:16 without a second PC? The free Aitum Vertical plugin adds a separate vertical canvas to OBS Studio. Here's how to install version 1.6.8, build and link vertical scenes, add a vertical stream, use Backtrack clips and test it.

Marcus Thorne5 min

How to Fix Error 0xc000007b (Application Unable to Start Correctly) in Windows 11

How-To

How to Fix Error 0xc000007b (Application Unable to Start Correctly) in Windows 11

Game or app won't open with error 0xc000007b, saying the application was unable to start correctly? Here's what Microsoft says the code means, why mixed 32-bit and 64-bit files often cause it, and the safe fixes: Visual C++ Redistributables, verifying the game, antivirus quarantine, DISM and SFC.

Marcus Thorne5 min

How to Disable or Remap Caps Lock in Windows 11

How-To

How to Disable or Remap Caps Lock in Windows 11

Windows 11 has no Settings switch to turn off Caps Lock, but you can disable or remap it. We explain three methods - SharpKeys, a hand-made Scancode Map registry value and PowerToys Keyboard Manager - with their trade-offs for games and sign-in, and how to undo them.

Marcus Thorne4 min