Why you might want to disable the Windows key
The Windows key (the one with the four-square logo) opens the Start menu or search when you press it alone. If you play games, use certain software, or just keep hitting it by accident, you can turn it off so it stops interrupting what you're doing. Disabling it doesn't break anything — you can always turn it back on later.
The method you use depends on what you're trying to accomplish. If you want to disable it only while you're playing a game, that's different from disabling it permanently on your computer. Some approaches work on all Windows versions; others are specific to Windows 10 or 11.
Key Takeaways
- The Registry Editor method works on all Windows versions and is the most permanent way to disable the Windows key.
- Game Mode in Windows 10 and 11 can disable the Windows key automatically while you play, without permanent changes.
- Third-party keyboard software from your keyboard's manufacturer may offer a dedicated toggle for the Windows key.
- Disabling the Windows key through the Registry requires you to restart your computer before the change takes effect.
- You can re-enable the Windows key at any time by reversing the Registry change or uninstalling third-party software.
Disable the Windows key using the Registry Editor
This method works on Windows 10, Windows 11, and earlier versions. It makes a permanent change to how your keyboard behaves until you undo it. Open the Registry Editor by pressing Windows key + R, typing regedit, and pressing Enter. If a dialog box asks for permission, click Yes.
Navigate to this folder in the left panel: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout. Right-click in the empty space on the right side and select New, then Binary Value. Name it Scancode Map (exactly as written). Double-click the new entry, paste this string into the box: 00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00, and click OK. Restart your computer. The Windows key will no longer work.
To turn the Windows key back on, return to the same Registry location, right-click Scancode Map, select Delete, and restart again.
Use Game Mode to disable the Windows key temporarily
If you only want to disable the Windows key while playing games, Game Mode is simpler and doesn't require Registry changes. On Windows 10 or 11, press Windows key + I to open Settings, then go to Gaming in the left menu. Click Game Mode and turn it on.
When you launch a game, Game Mode activates automatically and prevents the Windows key from opening the Start menu. Once you close the game, the Windows key works normally again. This method doesn't disable the key permanently, so you don't have to remember to undo anything.
Disable the Windows key through keyboard software
If you own a gaming keyboard or a keyboard from a brand like Corsair, Razer, SteelSeries, or Logitech, check whether the manufacturer provides software to customize your keyboard. Download the software from the manufacturer's website, install it, and look for a setting to disable the Windows key or lock it during gaming.
This approach only works if your keyboard has dedicated software. Standard keyboards that came with your computer usually don't have this option. The advantage is that you can often toggle the Windows key on and off without restarting, and the setting applies only to that keyboard if you use multiple keyboards.
Disable the Windows key using Group Policy (Windows Pro and Enterprise only)
If you use Windows 10 Pro, Windows 11 Pro, or a business version of Windows, you can disable the Windows key through Group Policy. Press Windows key + R, type gpedit.msc, and press Enter. Navigate to User Configuration > Administrative Templates > Windows Components > File Explorer.
Find the setting called Turn off Windows Key hotkeys, double-click it, and select Enabled. Click OK and restart your computer. This method is cleaner than the Registry approach because it's designed specifically for this purpose, but it's only available on Pro and Enterprise versions of Windows.
What happens when the Windows key is disabled
Once disabled, pressing the Windows key alone does nothing. Keyboard shortcuts that use the Windows key — like Windows key + V (clipboard history) or Windows key + Shift + S (screenshot tool) — also stop working. If you use these shortcuts regularly, you may want to use Game Mode instead, which only disables the key temporarily.
Disabling the Windows key does not affect any other keys on your keyboard. You can still use Alt, Ctrl, Shift, and all letter and number keys normally. If you accidentally disable the key and can't remember how to turn it back on, you can always restart your computer in Safe Mode, undo the Registry change, and restart again.
Frequently Asked Questions
Will disabling the Windows key affect my computer's performance?
No. Disabling the Windows key is a simple input remapping that doesn't use any extra resources or slow down your computer. It only changes what happens when you press that one key.
Can I disable just one Windows key if my keyboard has two?
The Registry method disables both Windows keys at once. If you want to disable only the left one or only the right one, you would need to use keyboard software from the manufacturer, which may offer that level of control.
What if I disable the Windows key and then forget how to turn it back on?
You can always undo it by going back to the Registry Editor, finding Scancode Map, and deleting it, then restarting. If you used Group Policy, go back to that same setting and select Disabled instead of Enabled.
Does disabling the Windows key work on external keyboards?
Registry and Group Policy changes affect all keyboards connected to your computer. Manufacturer software usually works only with that brand's keyboards. If you have multiple keyboards, the Registry method disables the Windows key on all of them.
Can I disable the Windows key on a Mac?
Macs don't have a Windows key. If you're using a Windows keyboard on a Mac, the Windows key is usually mapped to the Command key, and you would need to remap it using Mac keyboard settings or third-party software.