How to Lock Keyboard on Mac

Kyle Wood

Mac, Tutorials

How to Lock Keyboard on Mac


Locking the keyboard on your Mac can be useful in various situations. Whether you want to prevent accidental keystrokes, keep your computer secure, or clean the keyboard without triggering any actions, locking the keyboard can be a handy feature. In this tutorial, we will explore different methods you can use to lock the keyboard on your Mac.

Method 1: Using Keyboard Shortcut

If you’re looking for a quick and easy way to lock your Mac’s keyboard, you can use a built-in keyboard shortcut. Here’s how:

  1. Press and hold the Control, Shift, and Power (or Eject) buttons simultaneously for a few seconds.
  2. Your screen will turn off, and your Mac will be locked. To unlock it, press any key or move the mouse.

Method 2: Using Hot Corners

If you prefer a more visual approach to locking your keyboard, you can use hot corners. Hot corners allow you to trigger certain actions by moving your mouse cursor to specific corners of your screen. Follow these steps:

  1. Go to System Preferences.
  2. Select Mission Control.
  3. Click on the “Hot Corners..” button at the bottom of the window.
  4. In the dropdown menu for one of the corners, select “Put Display to Sleep”.
  5. Move your mouse cursor to that corner whenever you want to lock your keyboard.

Method 3: Using Terminal

For those comfortable with using the Terminal, there is a command you can use to lock your keyboard. Here’s how:

  1. Open the Terminal application.
  2. Type the following command: caffeinate -u -t 1
  3. Press Enter.


Locking your keyboard on a Mac can be done easily through keyboard shortcuts, hot corners, or by using Terminal commands. Whether you prefer a quick shortcut or a visual approach, these methods provide you with different options to lock your keyboard and keep your Mac secure. Choose the method that suits your preference and enjoy the convenience of a locked keyboard whenever you need it.

Android - iPhone - Mac

 © 2023 UI-Transitions

Privacy Policy