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:
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.
Microsoft Store - the project says the same MSI is available there.
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
Open SharpKeys from the Start menu and click Add.
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.
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.
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.