How to disable Windows Key in Windows 10 Computer permanently / temporarily

Windows Key is a multi function key which eases use of many functions. Starting from accessing the Start menu without using the mouse to launching various Windows functions, settings, utilities can by done with the help of Windows key.

But, when you are gaming, Windows key can be very problematic. In this article, we will discuss various ways to disable the Windows Key on your keyboard.

Method 1: Disable the Windows Key from Registry Editor-

1. Just type “regedit” in the Search box.

2. Now, in the search result, you have to click on the “Registry Editor“.




2. Once you have opened the Registry Editor window, click on “File” and then click on “Export“.

Then, save the exported registry to a favorable location on your drive.

In case of if any thing goes wrong, you can just merge it to your original Registry directory.


Export Registry


3. Now, on the Registry Editor window, navigate to this location-

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

Now, right click on the right side space, and click on “New” and then on “Binary Value“.

Rename the Binary Value as “Scancode Map“.


New Binary Value


4. Double click on “Scancode Map“.


Double Click Scan Code Map


5. Now, under the “Value Data” section, write this values “00000000000000000300000000005BE000005CE000000000” and click on “OK“.

[NOTE– You will not be able to copy and paste this in the Value Data tab. So, you will have to manually enter these values. After entering the values, check the order of the value with the following screenshot. Any kind of mistake during the input can lead to fatal system error.]


Value Change Scan Code


Now, close Registry Editor.

After rebooting, Windows button should be disabled on your computer.

If you want to use the Windows button again, just “Scancode Map” from the Registry Editor.

Method 2: Use AutoHotkey-

AutoHotkey is a scripting application that can be used for creating custom keyboard shortcuts, disabling any key on the keyboard.

1. Download the AutoHotkey application on your computer.

2. Now, double click on  “AutoHotkey_1.1.32.00_setup” application to install the AutoHotkey on your computer.

3. Now, in the installation page, click on “extract to” to choose where to extract the files or you can just click on “Express Installation” to install AutoHotkey in a default location.


Autohot Key


4. Click on “Exit” to exit the installation.

5.Now, in the desktop, right click in any empty space and click on “New“and then click on “AutoHotkey Script“.


New Autohot


6. Now, again right click on “New AutoHotkey Script” and click on “Edit Script“.


Edit Script


7. Now, copy and paste these two lines in the script.

~LWin Up:: return
~RWin Up:: return

Press Ctrl+S to save the script.


Autohot Script Save


Close the Notepad.

8. Now, just double click on the  “New AutoHotkey Script” and it will be running on your computer.

Reboot your computer. After rebooting, check if the Windows key is disabled or not.

[IMPORTANT– Please remember, some games (online multiplayer) can detect this background script as a cheating script. You should check if AutoHotkey script is white-listed in the developer’s site. ]

Method-3 Disable Windows key from your keyboard-


If you are using a gaming keyboard, then you can easily disable the Windows key.  Just access the keyboard settings on your computer, and you will be able to enter “Gaming Mode“. This will temporarily lock the Windows key on your computer till you are in the Gaming mode.

In many gaming keyboards, there are individual settings to disable the Windows Key. You can find the particular software of your keyboard (where you can disable the Windows key) on your manufacture’s website.


Method- 4 Another method of disabling Windows key using Registry Editor-

1. First, right-click on the Windows icon and click on “Search“.

2. Now, you need to “regedit” and then click on “Registry Editor“.




3. Now, in the Registry Editor window, click on “File” and then click on “Export“. Save the exported registry to a favorable location of your choice. You can retrieve this registry backup any time you want.


Export Registry


3. Now, on the Registry Editor window, navigate to this location-


Now, on the left pane click on “New” and then click on “DWORD (32-bit value)“.

New Dword


Rename it as “NoWinKeys“.

4. Now, double click on “NoWinKeys“.


Nowinkey Double


5. Now, change the Value Data as “1”  and click on “OK” to save the changes.


Value Data Nowinkey


Close Registry Editor.

Restart your computer to save the changes. After rebooting Windows key should be disabled on your computer.

If you want to use the Windows key again, just delete “NoWinKeys” from the Registry Editor.


Method- 5 Use Group Policy Editor-

1. Once you have opened a Run terminal, type “gpedit.msc” there.

2. Now, click on “OK“.


Run Grouppolicy


2. Now, on the left pane, navigate to this location-

User Configuration > Administrative Templates > Windows Components > File Explorer

Now, scroll down to find “Turn off Windows key hotkeys” and double click on it.


File Explorer


3. Now, in the Turn off Windows key hotkeys window, click on “Enabled” and click on “Apply” and then click on “OK“.


Enable Turn Off Hotkeys


Restart your computer to save the changes and after rebooting Windows key on your keyboard should be disabled on your computer.