Hitting the wrong key on a keyboard can be pretty annoying. While most keyboards are standard, some apps don’t treat them that way, and hitting a certain key or key combination triggers something we don’t want to happen. This time, we discuss How to Disable Certain Keys on Keyboard on Windows 10 PC. After this, you’ll learn how to disable a keyboard key you don’t want to use or simply can’t.
As mentioned, some apps can trigger unwanted functions when certain keys are pressed. What if you use the app daily and that key happens to be very accessible? Pressing that key, for example, would result in the system freezing. You of course would want to know how to disable the keyboard key. A good example of an annoying key is Capslock.
Another reason could be to disable a stuck key that causes problems and can’t be repaired or replaced in the meantime. Also, replacing keys on laptops can be expensive. Or it can be a key not meant to be used but is adjacent to another and often pressed because the keyboard is too small. Whatever the reason to disable keys on a keyboard, here’s how to disable certain keys on your keyboard on Windows 10 PC.
Table of Contents
Step 1: Download & Install Autohotkey
To disable key on keyboard, we need the app called Autohotkey. It’s actually more of a scripting language to create keyboard shortcuts to accomplish many tasks. It may prove useful for other things but for our purposes, we’ll use it to disable one or several problematic keys.
Download the installer from its website and run it. No worries. It’s a completely safe and legitimate open-source program. It’s vouched for by Norton Safe Web. Go ahead and download the current version.
When the installer runs, choose Express Installation to make things simple. The installation is fast and doesn’t need to be launched. The program will reside in your system tray and will automatically be launched whenever Windows starts. You won’t be seeing a shortcut on your desktop.
Step 2: Know the Reference Names of Keys
Since Autohotkey is a scripting language, you’ll need to learn how it identifies each key on your keyboard. For our purposes, you won’t need to learn the language itself – just what names the program has for individual keys. Proceed to their documentation page first, and list down which key you want to disable. Feel free to go back and learn more.
In this example, let’s disable that annoying Capslock key. Autohotkey’s reference name for it is CapsLock with an uppercase L. But note that there may be complications for Windows IME users or users that use other languages. This assumes your keyboard language is English. If you have another key in mind, just copy the reference name.
Step 3: Create an Autohotkey Script File
Open any text editor. In this case, Notepad. Type in or paste the reference name, followed by two colons and the word return. Ex: CapsLock::return
If you need to disable more keys, simply add more lines.
Now, save the script under any name in any location, but add a .ahk extension. Don’t forget to change the file type to All Files. Ex: DisableKeys.ahk
Step 4: Disable Certain Keys on your Keyboard
Navigate to where the script is saved. You’ll see the file icon looks different like a document with a large H. Double-click the file to run it.
The green Autohotkey icon will appear on the system tray meaning it’s active. It will block any input from the keys we specified in the script. Try using the disabled keys. If they don’t work, then the keys have been successfully disabled.
Step 5: Edit the Script
To change the list of disabled keys, simply right-click on the system tray icon and select ‘Edit this Script’. Add more keys or re-enable them by removing lines. After changing and saving, right-click on the system tray icon and select ‘Reload this Script’ for the changes to take effect.
Step 6: Run the Script Automatically on Startup
Next time you reboot your computer, you will need to double-click again on the script file. To do this automatically, simply move or copy the script file to the Windows Startup folder. First, open an Explorer window and navigate to the folder containing the script file. Next, press Win+R to open the Run dialog box. Type in %AppData% and click Ok. Navigate to the Microsoft\Windows\Start Menu\Programs\Startup folder. Go to the previous Explorer window, copy the script file, and paste it onto the Startup folder.
Step 7: Re-enable All Keys
To re-enable all keys, right-click on the system tray icon and select Suspend Hot Keys, or simply Exit the program.
Normally Annoying keys
Sometimes, manufacturers tend to design their keyboards differently. Especially during the early 2000s with the odd placements of hibernation and power keys placed closely to the page navigation keys, or how some Lenovo keyboards and their oversized Delete keys are in the same area. Sometimes the Fn keys are placed where the left Ctrl should be. Or a power button right on top where the Esc key is. There are so many odd keyboard designs nowadays that knowing how to disable a keyboard key is mandatory. Here are some common annoying keys and their reference names to save you the trouble of looking up.
|Left CTRL||LControl (or LCtrl)|
|Right CTRL||RControl (or RCtrl)|
If you wish to make the numeric pad exclusively numeric:
|Numpad Page Up||NumpadPgUp|
|Numpad Page Down||NumpadPgDn|
And friends that is How to Disable Certain Keys on Keyboard in Windows 10 PC. Now you know how to disable a keyboard key that’s buggy or annoying or disable a stuck key or damaged key that causes problems. Kindly share this article to help other persons in need.