How to Lock the Keyboard on a Mac

Locking the keyboard but nothing else on your Mac requires a third-party app; but in most cases, you don't actually need this. Whether you want to lock the keyboard on a Mac to clean it, or you have young kids, or a mischievous pet that likes to lay across your keyboard, the easiest way to protect against unwanted changes or entries in text fields is to simply lock your Mac screen.

How to Lock Mac Keyboard & Screen Manually

To learn more about your Mac features, sign up for our free Tip of the Day Newsletter. Now, here's how to lock a MacBook keyboard (or any Mac) by locking the screen: 

  1. In the top left corner of your screen, click the Apple icon

  2. From the menu that appears, click Lock Screen

  3. You Mac screen will be locked, and you will need to enter your password or use Touch ID to log back in. 

While this isn't quite the same as fully locking your Mac keyboard, this will protect against any unwanted purchases or changes in text fields without going through the trouble of installing a third-party app. Below, we'll also show you the quick keyboard shortcut to lock your screen (and effectively lock the keyboard on your MacBook). 

iPhone Life
Discover your iPhone's hidden features
Get a daily tip (with screenshots and clear instructions) so you can master your iPhone in just one minute a day.

How to Lock a Mac Keyboard with a Keyboard Shortcut

If you often use keyboard shortcuts, another way to lock your screen and prevent changes is to press control + command + Q to lock your screen. 

As shown in the steps above, you'll be taken to a lock screen and will need to enter your password or use Touch ID to sign back in. That's all there is to it! If you often use AirDrop, you can also learn how to customize your Mac AirDrop name so you can more easily spot it in a list. 

Master your iPhone in one minute a day: Sign up here to get our FREE Tip of the Day delivered right to your inbox.


Author Details

Devala Rees's picture

Author Details

Devala Rees

Devala Rees has been a writer since the age of eleven, and a loyal user of Apple products for even longer. His writing background is quite eclectic, from freelance professional articles to Hindu religious scholarship to fantasy novels. Much of his writing on various topics can be found on