How to disable the Windows Key in Windows 10 [FULL GUIDE]

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
Affiliate Disclosure
Share this article:

  • Have you wondered how to disable the Windows key? Modifying the registry is one solution.
  • Instead of modifying the registry, you can download a .reg file and use it to disable the Windows key.
  • Usually, gaming keyboards have dedicated software so you can check the key settings there.
  • Using a dedicated third-party tool is another solution of how to disable the Windows key button.
windows key
To fix various PC problems, we recommend Restoro PC Repair Tool: This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

The Windows Key is rather useful and it’s a part of many shortcuts on Windows 10. Even though many users use it frequently, some users want to disable it.

Every advanced Windows user knows how useful Windows Key button is. Despite its usefulness, the key can sometimes be a problem, especially during intense gaming sessions.

By default, pressing the Windows Key will open the Start Menu and that can be a problem during gaming. By accidentally pressing the Windows button you’ll lose focus on your game and that can be a big problem.

In order to avoid these kinds of problems, many gamers disable their Windows Key during the gaming sessions.

In this guide, we’re going to show how to disable the Windows button. There are a couple of methods you can use from where you can choose the best for you.


How can I disable the Windows Key while gaming?

1. Modify your registry

  1. Press Windows Key + R and enter regedit.
  2. Click on OK or press Enter.
    regedit run window disable the Windows Key
  3. Optional: Before you make any changes to your registry it’s always a good idea to create a backup. To do that, just click on File > Export.file export registry disable the Windows Key
  4. Select All as Export range, choose a safe location, enter the desired file name and click on Save.
    export settings disable the Windows Key
  5. In the left panel, navigate to: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  6. In the right pane, right-click the empty space and choose New >Binary Value from the menu.
  7. Enter Scancode Map as the name of the new value.
    new binary value registry disable the Windows Key
  8. Double click Scancode Map value and enter 00000000000000000300000000005BE000005CE000000000 in the Data field
  9. Be extra cautious and double-check if the entered value is correct. Now click OK.
    edit binary value disable the Windows Key
  10. After doing that, close Registry Editor and restart your PC.

Note: Keep in mind that your registry has sensitive information in it, so if you want to edit it, use extra caution. If you encounter any problems with your PC after modifying the registry, restore the backup created at steps 3-4.

After your PC restarts, the Windows Key should be completely disabled. To enable the Windows Key, you need to go back to Registry Editor and delete the Scancode Map that you created.


2. Use Disable Windows key reg

 regedit

If you don’t want to modify your registry manually, there’s a .reg file available that you can use to modify it. Simply download Disable Windows key.reg and run it.

When the warning message appears, click on Yes. If you want to enable Windows Key again, download and run Enable Caps Lock and Windows keys.reg.

This method is a lot faster and simpler, so if you’re not comfortable with modifying the registry manually, be sure to try using the .reg file.

This method is great if you want to disable Windows Key and prevent other users from enabling it. Modifying the registry manually might not be the simplest method, but you can always use the .reg file to modify it automatically.


3. Use AutoHotkey

disable windows key

If you want to disable your Windows Key, you might want to try using AutoHotkey. This is an open-source and powerful automation scripting language.

The application allows you to assign certain commands to your keys, but it also allows you to disable keys. AutoHotkey isn’t the simplest application, so you might want to learn how it works before you can use it correctly.

Basically, you need to create a script that will block Windows Keys and add that script to AutoHotkey. Simply click AutoHotkey icon in your Taskbar and choose Edit this Script. Now you need to paste the following script at the bottom:

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

Save your script, right-click AutoHotkey and choose to Reload This Script from the menu. After doing that, both Windows Keys will be disabled.

Keep in mind that this solution won’t disable shortcuts that involve Windows Key, instead, it will just disable the keys themselves.

It’s worth mentioning that some online games might recognize AutoHotkey as a cheating application, so keep that in mind.

Before you use this solution it’s always a good idea to do some research and check if the game developers allow you to use AutoHotkey with their game.

Download Autohotkey


4. Use SharpKeys

  1. Download and start SharpKeys.
  2. Once the application starts, click on Add.sharpkeys
  3. Now you’ll see two columns. Click on Type Key in the left pane and press the Windows Key.
    type key disable the Windows Key
  4. Now click on OK to select the pressed key.
    type key confirmation disable the Windows Key
  5. Select Turn Key Off in the right pane and click on OK to save changes.
    turn key off sharpkeys
  6. Now click on Write to Registry button.write to registry sharpkeys disable the Windows Key
  7. Now you just have to restart your PC or log out and log back in to apply the changes.
  8. To enable Windows Key again, start Sharpkeys, select the desired key from the menu, and click on Delete.sharpkeys delete disable the Windows Key
  9. After deleting the key, click on Write to Registry button.write to registry disable the Windows Key
  10. Now restart your PC or log off and back on to apply the changes.

Note: This is a free and portable tool that allows you to remap your keys, but it also has the ability to disable keys or to assign them to certain functions. Keep in mind that this is a powerful application, so you’re using it at your own risk.


5. Use Gaming mode on your keyboard

gaming-keyboard

Many gaming keyboards have a Gaming mode feature that allows you to block Windows Key with ease. To activate Gaming mode you usually have to press a certain keyboard shortcut.

Some keyboards even have a controller icon on one of its keys so you can easily find the shortcut key for Gaming mode. If you can’t find the shortcut on your own, we advise you to check your keyboard manual for detailed instructions on how to activate Gaming mode.

Keep in mind that not all keyboards support this feature, so before you can use it you need to check if your keyboard supports it. Activating the Gaming mode is the simplest and fastest way to disable Windows Key, but unfortunately, not all keyboards support this feature.


6. Use your keyboard software

As we previously mentioned, many gaming keyboards support Gaming mode. These keyboards usually have dedicated software that you can use to configure various settings such as macros and lighting.

Run a System Scan to discover potential errors

Restoro Scan
Click Start Scan to find Windows issues.
Restoro Fix
Click Repair All to fix issues with Patented Technologies.
Run a PC Scan with Restoro Repair Tool to find errors causing security problems and slowdowns. After the scan is complete, the repair process will replace damaged files with fresh Windows files and components.

In addition, you can also turn on Gaming mode from these apps. Keep in mind that not all keyboards and apps support Gaming mode, so be sure to check your keyboard manual to see if your keyboard supports this feature.


7. Use Winkill

If you want to disable Windows Key and its shortcuts, you can do it easily with Winkill tool. This is a small and portable application and it will run in your systray, so you won’t even know that it’s running.

Once you start it the application will block Windows Key along with most other Windows Key shortcuts.

Unlike previous applications we mentioned, Winkill allows you to toggle it on or off, so you can easily disable it once you’re done with your gaming session.

If needs be you can also turn it back on with a single click. Winkill is a simple application, and if you’re looking for a simple and easy way to disable Windows Key on your keyboard, Winkill might be the best choice for you.

Download Winkill 


8. Use Disable Windows Key app

windows key disable

Another third-party application that can disable Windows Key for you is Disable Windows Key app. This is a freeware and portable application, and it will run on any PC without installation.

After you start the application, it will be located in your systray so you won’t even know that it’s running.

The application allows a bit of configuration, so you can start it automatically with Windows if you like. You can also set the application to automatically disable the Windows Key once you start it.

Of course, the application allows you to toggle it on or off simply by clicking its icon.

Disable Windows Keyapp will disable Windows Key, but it won’t disable any shortcuts that use it, which is a major plus.

If you’re looking for a simple and friendly third-party solution that will allow you to disable the Windows Key, be sure to try this application out.

Download Disable Windows Key


9. Use WKey Disabler

wkey disabler

There are many third-party applications that can disable Windows Key, and one of these applications is WKey Disabler. Just like previous apps that we mentioned, this is a freeware and portable application and it will run from your systray.

The application doesn’t have any advanced features, and you can’t even toggle it on or off. As soon as you start the application your Windows Key and all its shortcuts will be automatically disabled.

Since there’s no way to toggle the application off, the only way to enable Windows Key again is to disable the app. WKey Disabler is a simple tool, and if you want to disable your Windows Key, feel free to try it.

Download WKey Disabler


10. Use Registry Editor to block Windows Key hotkeys

  1. Open Registry Editor.
  2. When Registry Editor opens, from the left panel go to: :HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Right-click the empty space in the right panel and choose New > DWORD (32-bit value).
  4. Enter NoWinKeys as the name of the new DWORD.
    new dword disable the Windows Key
  5. Double click NoWinKeys DWORD to open its properties.
  6. Set Value data to 1 and click OK to save changes.
    value data disable the Windows Key
  7. After you’re done, close Registry Editor and restart your PC to apply the changes.

Note: Once your PC restarts you won’t be able to use Windows Key shortcuts at all. This is useful if you want to prevent users from accessing certain hidden features of your system by using Windows Key shortcuts.

If you want to disable Windows Key only, you might want to try some other solution.


11. Use Group Policy Editor

  1. Press Windows Key + R and enter gpedit.msc. Press Enter or click OK.
    gpedit.msc run window disable the Windows Key
  2. Now navigate to the User Configuration > Administrative Templates > Windows Components > File Explorer in the left pane.
  3. In the right pane, locate and double click Turn off Windows Key hotkeys option.
    turn off windows key hotkeys disable the Windows Key
  4. Select Enabled option and click on Apply and OK to save changes.
    enable policy turn off windows key hotkeys
  5. After doing that, restart your PC and check if that solves the problem.

Note: This is a simple solution, but it should disable only Windows Key shortcuts. If you need to disable the Windows Key entirely, you might want to try a different solution.

Learn how to edit the Group Policy like an expert with the help of this useful guide.


Windows Key is incredibly useful, but it can sometimes be a problem during intense gaming sessions. There are many ways to disable it, and the best one is to set your keyboard to Gaming mode.

If the keyboard doesn’t support this feature, you can easily disable Windows Key by using any of our solutions.

If you have any other suggestions or questions, leave them in the comments section below and we’ll surely take a look.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on TrustPilot.com (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).
Restoro has been downloaded by 0 readers this month.
Editor's Note: This article was originally published in August 2017 and was revamped and updated in January 2021 for freshness, accuracy, and comprehensiveness.
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!