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

Expert Q&A

Ask a Question
      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!

      About This Article

      Thanks to all authors for creating a page that has been read 4,544 times.

      Is this article up to date?

      Advertisement