Don’t want to use page up and page down keys? Here is a simple way to disable page up and page down keys in Windows.
Most keyboards have dedicated Page Up and Page Down keys. Sometimes, these keys might be abbreviated to “PgUp” and “PgDown/PgDn.” For some users, these keys are pretty helpful. If you don’t know, the Page Up and Page Down keys are generally used to scroll up and down on web pages, command-line interfaces, word processes, etc.
However useful, most of us never use the Page Up and Page Down keys to scroll because of the mouse wheel and arrow keys.
Though the Page Up and Page Down keys are nothing harmful, they can sometimes come in the way. For example, some keyboard and laptop manufacturers club both Up/Down and Page Up/Down keys together or place them near other important keys like back, delete, shift, enter, etc., due to space constraints. This can cause frequent mistypes.
If you are frequently mis-typing the Page Up or Page Down keys or if you are not using them entirely, you can disable them to make your life a bit easier. The good thing is, it is pretty is to do. All it takes is a few clicks, and you are good to go.
Let me show you how to disable Page Up and Page Down keys in Windows operating system.
Note: The steps shown below will work in Windows 7, 8, 10, and 11.
Disable Page Up and Page Down keys
There are several methods to disable Page Up and Page Down keys in Windows. In this guide, I’m showing a technique that uses AutoHotKey.
AutoHotKey is a simple software that lets you remap keys in Windows operating system. Since it can remap keys, we can use it to remap Page Up and Page Down keys to nothing, effectively disabling them.
Let me show you how to use AutoHotKey to disable keys like Page Up and Page Down.
- Get the AutoHotKey application.
- Install AutoHotKey.
- Right-click on the desktop.
- Open the Notepad app.
- Paste the below script into the Notepad.
- Click “File > Save as.”
- Type “disablePgUpDn.ahk” as its name.
- Choose “All files” as “File type.”
- Click the Save button.
- Double-click on the newly created .ahk file.
- With that, you have disabled both Page Up and Page Down keys in Windows.
Same steps with a bit more detail and screenshots:
First thing, download and install the AutoHotKey software. It is free and open-source. After installing, open the Notepad application. You can search for it in the Start menu.
After opening Notepad, paste the below AutoHotKey script. If you are wondering, all it does is return nothing (empty input) when you press the Page Up or Page Down keys. That means this script effectively disables both keys.
;; Disable Page Up Key
;; Disable Page Down Key
Now, we need to save the file as an AutoHotKey script. To do that, click the
“File > Save as.”
When prompted, go to the folder of your choice, type the file name as “disablePgUpDn.ahk,” choose “All Files” from the “File Type” dropdown menu and click the “Save” button.
With that, you are done creating the AutoHotKey script file. Go to the save location and double-click on the newly created AutoHotKey script file.
The script file starts running in the background as soon as you do that. As long as the script runs, Page Up and Page Down keys are disabled.
If you want, you can add the AutoHotKey script to Windows Startup.
You have successfully disabled the Page Up and Page Down keys in Windows.
That is it. It is simple to disable Page Up and Page Down keys in Windows.
I hope this simple and easy Windows how-to guide helped you.
If you are stuck or need some help, comment below, and I will try to help as much as possible.