It might be a good idea to disable a key on the keyboard if it keeps spamming and limits you from typing correctly. Also, if you recently shifted to a new keyboard and not used to the position of a particular key, the best bet is to disable it.
MS-PowerToys is a general go-to option to disable a key for most Windows users. However, there are also methods you can easily use without installing any applications. Keep reading to know more!
How to Disable a Key on Keyboard?
Disabling a key on your keyboard is not that cumbersome. You can either use the customization tool from Microsoft, modify registry settings, or opt-in for other applications.
Here, we have compiled the best 3 proven methods to disable a key on your keyboard. Let’s get straight into them.
Disable Using MS-PowerToys
The first method we will learn is disabling a key using Microsoft’s PowerToys application. The application is available on Microsoft Store and lets you customize overall Windows. It has different functionalities like changing the color format, resizing images, and customizing File Explorer including modifying the keyboard settings.
Follow these steps to disable the desired key on your keyboard.
In the search box, type Microsoft PowerToys and hit Enter.
Click Install button.
Once the installation is complete, launch the application.
On the left pane of the PowerToys application window, search for and click Keyboard Manager.
Then on the right pane, toggle on Enable Keyboard Manager.
Click Remap a key under the Keys section.
It will open up a new Remap keys window.
Click (+) symbol under Physical Key.
Click Type button under the same Physical key section.
Now press the key that you want to disable. It will be shown on the screen after you press it. For instance, I pressed “A.” If you can not type the key, select it from the dropdown.
Now click the dropdown under Mapped To section.
Scroll all the way up in the dropdown and click Disable.
Confirm disabling in the popup, and you are done. You don’t even need to restart the computer, and the key will stop working afterward.
Disable Using Registry Editor
Another method to disable a key on your keyboard is using the Registry Editor. This method works like a charm every time. You don’t need to use any applications or third-party tools to use this method. However, make sure you create a backup of your registry before proceeding with this method.
Hit Windows + R key on the keyboard.
Type regedit in the text field. Then press Enter key.
Click Yes in the popup.
Once the Registry Editor window opens, copy and paste this location into the address bar and hit Enter key. Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Right-click the empty area on the right pane and click New > Binary Value.
Click the empty space once.
Now double-click and open New Value #1.
Enter eight pairs of zeroes (00) on the first line.
In the second line, you first need to enter 02 or 03.
If there is a single key you want to disable, type 02, and if there are a pair of keys you need to disable, type 03.
For example, If you wish to disable the letter key “A” which is a single key, type 02. Likewise, if you want to disable the Ctrl key, which is in pairs, type 03.
Next, enter five pairs of zeroes (00).
Then enter the Hex code for the key you want to disable. You can see the Hex code for each key in the keyboard from the table below.
For instance, I want to disable the letter key “A” on my keyboard. It means I should type “1E 00”.
Now on the third line, enter four pairs of zeroes (00).
Click OK and exit from Registry Editor.
Restart your computer. The key will stop working now.
Keys and their respective Hex code
Use Third-party Apps
If you do not prefer or have hands-on experience using the Registry Editor, you can opt-in for third-party apps like Keytweak.
The application makes it easy to customize the functions of keys on the keyboard with its simple interface. It also works by making changes in the registry of your computer. Simply download the application from the Internet and install it. Then follow the steps below to disable the key.
Launch Keytweak on your computer.
Hover the mouse pointer over the keys on the on-screen keyboard of KeyTweak. It will show you the key mapping.
For instance, I hovered the pointer over 31 and clicked it. It shows Key selected: 31 is currently mapped to “A”.
Click Disable Key.
Then click Apply button.
Click Yes in the popup to restart your computer. This application will do the same in the registry settings we did in the second method to disable the key.