How to Disable Windows Key in Windows 11: Step-by-Step Guide

Disabling the Windows key in Windows 11 can be a lifesaver if you’ve ever accidentally hit it mid-game or while working on an important project. By following a few simple steps, you can disable the Windows key and avoid those unwanted interruptions. This guide will walk you through the process in a straightforward manner, ensuring you can achieve this with ease.

How to Disable the Windows Key in Windows 11

Disabling the Windows key in Windows 11 involves modifying the system registry, a sensitive area that stores system settings. Here’s a step-by-step guide to help you do it safely.

Step 1: Open the Run Dialog Box

First, press Win + R on your keyboard to open the Run dialog box.

The Run dialog box is a quick way to access various Windows features and settings. By pressing these keys together, you’ll launch this handy tool.

Step 2: Type "regedit" and Hit Enter

Next, type regedit in the Run dialog box and press Enter, or click OK.

This command opens the Windows Registry Editor, where you can make system changes. Be cautious while using the Registry Editor, as incorrect changes can affect your system.

Step 3: Navigate to the Keyboard Layout Key

In the Registry Editor, follow this path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout.

This path leads you to the Keyboard Layout key, where you can make changes specific to your keyboard settings.

Step 4: Create a New Binary Value

Right-click on the right pane, select New > Binary Value, and name it Scancode Map.

Creating a new binary value here allows you to customize how certain keys function, or in this case, disable them.

Step 5: Modify the Binary Value

Double-click the Scancode Map entry you just created and enter 00000000 00000000 02000000 00005BE0 00000000 as the value data, then click OK.

This specific code disables the Windows key. Be sure to enter it exactly as shown to avoid errors.

Step 6: Restart Your Computer

Finally, restart your computer to apply the changes.

Restarting your computer ensures that the changes you made take effect, disabling the Windows key.

Once you restart your computer, the Windows key should be disabled. This means you won’t have to worry about accidentally pressing it and disrupting your workflow or game.

Tips for Disabling the Windows Key in Windows 11

  • Always back up your registry before making any changes. This prevents potential issues if something goes wrong.
  • If you’re not comfortable editing the registry, consider using third-party software designed to disable the Windows key.
  • To re-enable the Windows key, simply delete the Scancode Map entry you created.
  • You can also disable the Windows key using Group Policy Editor if you’re on Windows 11 Pro or higher.
  • Test the changes by pressing the Windows key to ensure it’s disabled after restarting.

Frequently Asked Questions

What happens if I make a mistake in the registry?

Making a mistake in the registry can cause system issues. Always back up the registry before making changes.

Can I disable only the left or right Windows key?

Yes, but it requires a different value in the Scancode Map. Specific mappings are available online.

Is there any software to disable the Windows key?

Yes, several third-party applications can disable the Windows key without editing the registry.

Will this method work in previous versions of Windows?

Yes, the same steps can generally be applied to Windows 10 and earlier versions, though paths may vary slightly.

How do I back up my registry?

In the Registry Editor, select File > Export, and save your registry backup to a safe location.


  1. Open the Run dialog box.
  2. Type "regedit" and hit Enter.
  3. Navigate to the Keyboard Layout key.
  4. Create a new binary value named Scancode Map.
  5. Modify the binary value with the specific code.
  6. Restart your computer.


Disabling the Windows key in Windows 11 can significantly enhance your productivity or gaming experience by preventing accidental key presses that can interrupt your flow. By following the steps outlined above, you can easily modify your registry to achieve this. Remember to always back up the registry before making any changes to avoid potential issues. If you’re not comfortable with the registry, third-party software is a viable alternative. Feel free to explore further resources or seek expert advice if needed. Now that you know how to disable the Windows key, you can work or game without unexpected interruptions. Happy computing!