This article was reviewed by Luigi Oppido and by wikiHow staff writer, Hannah Dillon. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 12,800 times.
Do you have a cat climbing all over your desk, a curious child putting their hands on your keyboard, or a nosy coworker snooping on your computer? If so, you may be wondering if it's possible to lock your keyboard. The answer is yes—there are a few ways to lock just your keyboard without locking your entire computer. In this article, we'll go over each step-by-step method to lock your keyboard on a Windows or Mac computer.
Ways to Lock Your Keyboard
On a PC, install AutoHotkey Keyboard Locker by Sophice on GitHub, then use Ctrl+Alt+k to lock the keyboard. On a Mac, install KeyboardCleanTool and click the lock button in the app to lock your keyboard.
Steps
-
Download a keyboard locker tool. There are a handful of these tools online, and they're all essentially AutoHotkey scripts packaged so a typical PC user can run them. We'll be going over how to use the AutoHotkey Keyboard Locker by Sophice on GitHub, but feel free to use any keyboard locker based on AHK scripts.
- Download the latest release of AutoHotkey Keyboard Locker on GitHub. We recommend downloading the executable file, as downloading the source code involves installing another program. As such, the steps in this section will be for the executable.
- There are alternative AutoHotkey Keyboard Locker scripts available that are programmed to lock the keyboard with a different shortcut (i.e. Ctrl + Alt + L). The method to install these scripts should be the same as the instructions below, but always check your source for specific instructions.
- Always be careful when downloading software from the internet, and only download programs you trust.
- Download the latest release of AutoHotkey Keyboard Locker on GitHub. We recommend downloading the executable file, as downloading the source code involves installing another program. As such, the steps in this section will be for the executable.
-
Save the .exe file in a location where it won't get deleted. The executable file for AutoHotkey Keyboard Locker is a portable application, so running the .exe doesn't install the app but runs it. As such, you can store the file anywhere you want (such as your desktop, documents folder, or another safe location).Advertisement
-
Run the executable file. Once you do, a pop-up will appear in the lower-right corner of your screen with the hotkeys to press to lock your keyboard.
-
Press Ctrl+Alt+k to lock your keyboard. Your keyboard will immediately be disabled. You can also right-click the AutoHotkey Keyboard Locker icon in the system tray and select "Lock keyboard."
-
Type unlock to unlock your keyboard. You can also right-click the AutoHotkey Keyboard Locker icon in the system tray and select "Unlock keyboard."
-
Right-click the keyboard locker icon in the system tray to close the program. Select Exit in the contextual menu to close out of AutoHotkey Keyboard Locker. Now, if you type Ctrl + Alt + k, your keyboard won't lock.
-
Download a keyboard locker tool. Thankfully, there are some keyboard-locking tools for Mac and Windows. We'll be going over how to use KeyboardCleanTool by folivora.AI.
- Download the latest release of KeyboardCleanTool on the folivora.AI website.
- Always be careful when downloading software from the internet, and only download programs you trust.
-
Open the KeyboardCleanTool app in your downloads folder. If your Mac gives you a warning when you try to open the app, click the Open button to bypass it. However, only do this for apps downloaded from the internet that you trust.
-
Click Click to start cleaning mode/lock the keyboard!. This button is at the top of the KeyboardCleanTool window, and it will immediately disable your keyboard and TouchBar (if your MacBook has one).
-
Click the button at the top of the KeyboardCleanTool app again to unlock your keyboard. If desired, you can also check the box next to "Start cleaning mode immediately after starting this app" if you want KeyboardCleanTool to activate as soon as you open the app.
-
Click the red circle in the corner of the window to close the app. Your keyboard will only lock if the app is open and you click the button in the app, but it's good practice to close the application when you're done with it anyway.
-
Open Device Manager. The easiest way to do this is to right-click the Windows button in the lower-left corner of your screen and select Device Manager. You can also open it by searching "Device Manager" in the taskbar search bar and clicking on Device Manager.[1]
-
Expand the "Keyboards" section. All of the keyboards connected to your PC will be listed. If there are multiple keyboards, try unplugging or disconnecting your keyboard to see which keyboard entry goes away and then returns when you connect your keyboard again.
- If you're on a laptop and see multiple keyboards in your Device Manager, you may have to repeat the steps below for each keyboard in the Device Manager.
-
Right-click on your keyboard and select Disable device. If you don't see Disable device, select Uninstall device instead.
-
Enable the keyboard once you're ready to use it again. In the Device Manager, right-click your keyboard and select Enable device.
- If you had to uninstall your keyboard to disable it, restart your PC. When your computer restarts, it will automatically reinstall the keyboard driver so you can use it again.