How to Prevent the Windows Key, Alt+Tab, and Sticky Keys From Ruining Your Gaming

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 1

Windows is designed for desktop use, not gaming. The Windows key, Alt+Tab, and other keyboard options like Sticky Keys will rip you out of full-screen games and back to your desktop — but you can disable them.

We’ve seen keyboards with the Windows key pried off and special gaming keyboards that advertise “no Windows key” as a feature. These hardware tricks aren’t necessary — you can disable these obnoxious keys entirely in software.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 2

Disable the Windows Key

Permanently disabling your Windows key isn’t ideal. It’s very useful for quickly opening your Start menu, using Windows search, and performing many different keyboard shortcuts. That’s why we recommend the AutoHotkey method below — you can disable the Windows key only when playing games.

You can also use other methods for disabling the Windows key. For example, you can also use SharpKeys to reassign the Windows key to another key or change the Scancode Map value in the registry on your own.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 3

Disable Alt+Tab, Windows Key + Tab, And Other Shortcuts

Other shortcuts can also be obnoxious. Pressing Alt+Tab or Windows Key+Tab will open an application switcher that takes you out of your game. We can’t disable these shortcuts in the registry, but we have successfully used AutoHotkey to disable Alt+Tab, Windows Key + Tab, and the Windows Key itself.

First, download and install AutoHotkey. Open it and click File > Edit Script.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 4

Delete the contents of the default AutoHotkey script and add the below content. The lines beginning with ; aren’t necessary — they’re comment lines that don’t do anything, but explain what the script does. If you only want to disable some shortcuts, you can choose which of the lines you want to include in your script.

; Disable Alt+Tab
!Tab::Return

; Disable Windows Key + Tab
#Tab::Return

; Disable Left Windows Key
LWin::Return

; Disable Right Windows Key
RWin::Return

Feel free to look up how AutoHotkey works and add other keyboard shortcuts you’d like it to ignore. If there’s another key or combination of keys that bothers you, AutoHotkey can take care of it.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 5

Save the in Notepad and click File > Reload Script in AutoHotkey afterward. AutoHotkey will grab the keyboard shortcuts and make them do nothing at all when you press them. AutoHotkey will automatically load this script each time you launch it.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 6

When not playing a game, you can click File > Suspend Hotkeys in AutoHotkey. AutoHotkey will release the keys so you can use the Windows Key, Alt+Tab, and other shortcuts normally. You can also just exit AutoHotkey and launch it before playing a game.

You could set AutoHotkey to only capture these keys while you’re using a specific application — however, you’d have to add each game you play to the list.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 7

Turn Off Sticky Keys

Tap your Shift key five times in a row and you’ll see the Sticky Keys prompt. This is designed to help people who have physical disabilities, but it’s inconvenient if you just want to press Shift in peace.

To disable the Sticky Keys pop-up, tap the Shift key five times in a row to bring up the Sticky Keys dialog. If the pop-up doesn’t appear, you’ve already disabled it. Click the “Go to the Ease of Access Center to disable the keyboard shortcut” link.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 8

In the Set up Sticky Keys window that appears, uncheck “Turn on Sticky Keys when SHIFT is pressed five times” and click OK.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 9

Turn Off Filter Keys

Filter Keys works similarly. To bring up the Filter Keys dialog, hold down the right Shift key for eight seconds. Click the “Go to the Ease of Access Center to disable the keyboard shortcut” link.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 10

Uncheck the “Turn on Filter Keys when right SHIFT is pressed for 8 seconds” option and click OK.

how-to-prevent-the-windows-key-alttab-and-sticky-keys-from-ruining-your-gaming photo 11


Hold down the Num Lock key for five seconds and you’ll see the Toggle Keys pop-up. Toggle Keys can be disabled in the same way, but it’s much less likely you’ll stumble across it. Most gamers aren’t holding down their Num Lock key for any particular reason.

Image Credit: AI R on Flickr

Article How to Prevent the Windows Key, Alt+Tab, and Sticky Keys From Ruining Your Gaming compiled by Original article here

More stories

Welcome to How-To Geek’s Mental Health Awareness Day

Mental health doesn’t always get the attention it deserves. Today, we’re taking a break from technology for some personal stories and useful guides in an effort to spread awareness about depression, anxiety, and other issues.

How to Work Offline on a Chromebook

Contrary to all the criticism out there, a Chromebook can be surprisingly useful offline. The key to using a Chromebook offline is preparing ahead of time and ensuring your apps and data will be ready.

How to Automate FTP Uploads from the Windows Command Line

Windows has included batch files since before it existed… batch files are really old! Old or not, I still find myself frequently creating batch files to help me automate common tasks. One common task is uploading files to a remote FTP server. Here’s the way that I got around it.

Futurama Wallpaper Collection for Your iPhone

With rumors of a Simpsons-Futurama crossover later this year floating around, you may find yourself missing the Planet Express crew more than ever. But until you can watch them in action once again, visit these familiar friends on your iPhone’s screen with the first in our series of Futurama