How to Disable a Key on Windows 11 (Caps Lock and Others)
To disable a key, remap it to Disable in PowerToys Keyboard Manager. The change applies at once and reverses in one click. A registry map also works machine-wide, but needs a restart to apply or undo.
Open PowerToys, then Keyboard Manager, then Remap a key. Add the key you want off, choose Disable as the target, and press OK. To bring it back, delete the row and press OK again.
| Applies to | Windows 11 24H2, 25H2 and 26H2 |
|---|---|
| Time needed | 3 minutes |
| Difficulty | Easy |
| Cost | Free |
| Needs | PowerToys, or registry access |
| Last verified | November 2026 |
The Reversible-First Rule for Disabling a Key
Start with the change that undoes fastest. A PowerToys disable reverses with one click, so try it before a registry edit that needs a restart in both directions.
This page narrows the main guide to remapping keys on Windows 11 to one task: turning a key off. Pick the method first, then follow its steps.
Reversible before permanent. Try PowerToys, live with it for a week, and only then consider a registry map.
Disable a Key With PowerToys
Add a Remap a key row with the unwanted key as the original and Disable as the target. Press OK and the key stops responding straight away, with no restart.
- Open Keyboard ManagerTurn on Enable Keyboard Manager if it is off.
- Select Remap a keyChoose Add key remapping.
- Pick the keyChoose the key to turn off, such as Caps Lock.
- Set the target to DisableSelect Disable from the list of targets.
- Press OK and testType in Notepad to confirm.
Windows may warn that nothing sends the original key any more. That is expected when you disable on purpose, so continue.
Disable a Key With a Registry Map
A Scancode Map entry that points a scan code to 00 00 turns that key off for every user. It needs administrator rights and a restart, so use it when PowerToys is not an option.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000200000000003A0000000000 /f
Restart to apply it. To undo, delete the value and restart, as shown in the registry recovery steps.
This command replaces any existing Scancode Map value. If you already use SharpKeys or another map, export the current value first.
Test the Disabled Key and Plan the Undo
Press the key in Notepad and in a browser to confirm it does nothing, then write down how to reverse it. A one-line note saves a long search later.
For PowerToys, the note reads: open Remap a key, delete the row, press OK. For a registry map, it reads: delete the Scancode Map value, restart. Keep a second keyboard or the on-screen keyboard within reach while you test a registry change.
If the key still works, check that PowerToys is running, that the row was saved with OK, and that no second remap sits on the same key.
Which Keys Are Worth Disabling
The usual candidates are Caps Lock, the Windows key during games, an accidental Insert key and a Copilot key you never use. Avoid disabling Esc or a key you cannot replace.
| Key | Why disable it | Suggested method |
|---|---|---|
| Caps Lock | Stray capital letters | PowerToys |
| Windows key | Accidental Start menu in games | PowerToys, switched off outside games |
| Insert | Overwrite mode surprises | PowerToys |
| Copilot key | Never used | PowerToys shortcut remap |
The Copilot key is a combination, so it follows a different method. See how to remap the Copilot key.
If you disable a key because you keep triggering the wrong text, a text code is sometimes simpler. Macro Keys expands typed codes and leaves every key alone.
Keep keys, speed up typing
Macro Keys is a free Windows program.
Questions About Disabling a Key
How do I disable Caps Lock on Windows 11?
Open PowerToys, go to Keyboard Manager and Remap a key, then add a row with Caps Lock as the original key and Disable as the new one. Press OK. The key stops acting at once. Delete the row to restore it later.
Can I disable a key without installing anything?
Yes, with a registry Scancode Map that points the key to nothing, but it needs administrator rights and a restart. A wrong value can disable keys you need, so keep a USB keyboard nearby and note how to delete the value before you start.
Will a disabled key still work in games?
Not usually, but results vary. PowerToys runs in the background and may act on input in games, and some users turn the module off while playing. A registry map applies to the whole machine, including games, so test before a session.
Is disabling a key permanent?
Only if you want it to be. A PowerToys disable is one click to undo. A registry disable lasts until you delete the Scancode Map value and restart. Either way nothing is erased from the keyboard itself, so the hardware stays fine.
Can I disable a key only in one program?
Only for shortcuts, not single keys. PowerToys lets a shortcut remap apply to one program by its process name. For single-key disabling, the change is global while PowerToys runs, so use a shortcut remap if you need app-specific behaviour.