PDF download Download Article
Lock your keyboard with apps or using built-in methods
PDF download Download Article

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.

Method 1
Method 1 of 4:

AutoHotkey Keyboard Locker (PC)

PDF download Download Article
  1. 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.
  2. 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
  3. 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.
  4. Your keyboard will immediately be disabled. You can also right-click the AutoHotkey Keyboard Locker icon in the system tray and select "Lock keyboard."
  5. You can also right-click the AutoHotkey Keyboard Locker icon in the system tray and select "Unlock keyboard."
  6. 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.
  7. Advertisement
Method 2
Method 2 of 4:

KeyboardCleanTool Software (Mac)

PDF download Download Article
  1. 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.
  2. 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.
  3. This button is at the top of the KeyboardCleanTool window, and it will immediately disable your keyboard and TouchBar (if your MacBook has one).
  4. 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.
  5. 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.
  6. Advertisement
Method 3
Method 3 of 4:

Disabling via Device Manager (PC)

PDF download Download Article
  1. 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]
  2. 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.
  3. If you don't see Disable device, select Uninstall device instead.
  4. 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.
  5. Advertisement
Method 4
Method 4 of 4:

Turn Off or Unplug Keyboard (PC or Mac)

PDF download Download Article
  1. This method won't apply to most laptops, though some models may have an on/off switch for the built-in keyboard. However, if you have a keyboard connected by USB, you can disable it by unplugging it, and if you have a keyboard connected by Bluetooth, you can disable it by turning it off.
    • While this isn't necessarily "locking" the keyboard, it will disable it so it can't be used until you plug it back in or turn it back on.

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Lock a Computer Lock Your Computer With or Without a Password (PC & Mac)
Turn Off Caps Lock5 Ways to Turn Off or Disable Caps Lock on Any Keyboard
Disable Windows Key5 Ways to Disable the Windows Key for Good
Fix Sticky Keyboard Keys Fix Sticky Keyboard Keys: PC, Mac, & Chromebook
Fix Your Computer when It Is Writing in All CapsSimple Steps to Fix a Keyboard Typing in All Caps
Disable the Function KeyDisable the Function Key
Fix a KeyboardFix a Keyboard
Cat Proof Your ComputerCat Proof Your Computer
Unlock a KeypadUnlock a Keypad
Hack a ComputerHack a Computer
Lock Desktop Icons in PlaceLock Desktop Icons in Place
Unlock Your Browser7 Simple Techniques to Unlock Your Browser or a Single Webpage
Reset a Keyboard7 Effective Ways to Reset Your Keyboard
Disable Internet Access4 Ways to Disable Internet Access
Advertisement

About This Article

Luigi Oppido
Reviewed by:
Computer & Tech Specialist
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 viewed 12,800 times.
How helpful is this?
Co-authors: 4
Updated: October 7, 2024
Views: 12,800
Categories: Computer Keyboards
Thanks to all authors for creating a page that has been read 12,800 times.

Is this article up to date?

Advertisement