Skip to content Black FridayUp to 76% off Vitals, Levers and SoundBar, until 5 December
Levers · Lock Keyboard

Lock your Mac keyboard while you clean it

Lock Keyboard holds every key back, so wiping the keys types nothing and sets off no shortcuts. The trackpad and the screen carry on as normal. Press Esc five times to unlock.

Lock Keyboard’s details: every key held back, trackpad and mouse still work, unlock with Esc five times, unlocks by itself after 5 minutes.

Every key, on every keyboard

Wipe a Mac’s keyboard while it is on and you type into whatever is in front, run shortcuts and perhaps quit an app. The usual answer is to shut the Mac down, clean it, and wait for it to start again.

With Lock Keyboard on, letters, numbers, shortcuts and the function keys do nothing. That goes for the built-in keyboard and for any other keyboard, Bluetooth ones included. You can press as hard as the cleaning needs. A note on the screen says how to unlock, so nobody is left guessing.

The trackpad and the mouse keep working. Only the keys are held.

Two ways to unlock

Press Esc five times in a row and the keyboard is back at once. The five presses have to come one after another. Or use the trackpad, which still works, to click Lock Keyboard off in the dropdown. There is no restart and no password.

Five esc keycaps in a row over the caption Unlocks the keyboard.

It unlocks itself

Lock Keyboard turns itself off after five minutes, so you can’t be locked out by accident. If five minutes is not what you want, set another time on its page, which opens when you click the switch’s name. While the lock is on you can see the time left, and +15m and +1h add more if the cleaning takes longer.

Lock Keyboard switched on with 4:42 left, then unlocked, and buttons for +15m and +1h.

What it needs

To hold key presses back before they reach your apps, Levers needs the Accessibility permission. macOS asks for it the first time you turn the switch on, and not again. If you say no, Lock Keyboard can’t work, and every other switch carries on as before.

macOS has no switch of its own for this. In Levers it is on the Focus & Power tab of the dropdown. To turn it on without the mouse, give it a hotkey in Settings › Shortcuts, or type “lock” in the palette.

Lock Keyboard or Cleaning Mode

The two are for different jobs. Lock Keyboard holds only the keys and leaves the screen and the trackpad as they are, which suits a quick wipe of the keys. Cleaning Mode also turns the screen black and ignores clicks and gestures, so you can wipe the screen and the trackpad as well. Both turn themselves off: Lock Keyboard after five minutes, Cleaning Mode after two.

How to use it

  1. 1

    Turn on Lock Keyboard

    Click Lock Keyboard in the dropdown. macOS asks for Accessibility the first time.

  2. 2

    Wipe the keys

    Nothing types and no shortcut runs.

  3. 3

    Unlock

    Press Esc five times in a row, or click the switch off with the trackpad.

The details

Holds back
Every key, on every keyboard
Still works
The trackpad and the mouse
Unlock
Esc five times in a row, or click it off
Unlocks by itself
After 5 minutes, or the time you set
Permission
Accessibility, asked for once
Where it is
The Focus & Power tab of the dropdown

Questions

Does it lock a Bluetooth keyboard too?

Yes. It holds back key presses from every keyboard connected to the Mac.

Does the trackpad still work while the keyboard is locked?

Yes. Only the keys are held, so you can click to unlock.

What if I forget how to unlock it?

A note on the screen says how, and the lock ends by itself after five minutes.

Why does it need Accessibility?

To hold key presses back before they reach your apps.

Can it black out the screen as well?

That is Cleaning Mode, which turns the screen black and also ignores clicks.

The same feature on the app's own site: leversmac.com/features/lock-keyboard

Sort the menu bar once, and let Levers clear the rest every time you share.