macOS conflates two different problems under “lock the keyboard,” and they have different answers. Locking the screen — several built-in ways — stops someone from using the Mac without your password. Disabling keyboard input while the screen stays on, the actual ask when a cat is sitting on the keyboard or you’re cleaning it, macOS does not do natively: no Settings toggle, no shortcut, no accessibility feature turns off the keys while leaving the display live.
Accessibility features like Slow Keys do not “lock” the keyboard. Slow Keys (System Settings → Accessibility → Keyboard) adds a delay between a keypress and when macOS accepts it, so brief accidental touches don’t register — a held or deliberate keypress still goes through. It reduces accidental input; it does not disable input, and it won’t survive a cat’s paw resting on a key for longer than the delay.
Screen lock — what macOS actually has
- Keyboard shortcut:
Control-Command-Qlocks the screen instantly from any app, per Apple’s documentation — not tested. - Apple menu → Lock Screen — a direct menu item on current macOS.
- Hot corner: System Settings → Desktop & Dock → Hot Corners, assign a corner to “Lock Screen.”
- Require the password immediately: System Settings → Lock Screen, set “Require password after screen saver begins or display is turned off” to “Immediately” — otherwise there’s a grace window after locking.
On macOS 26.6: Lock Screen, Touch ID, Sound, Focus, and Notifications are each their own top-level System Settings pane, not sub-tabs of one Preferences window — instructions built around pre-Ventura “System Preferences” are out of date.
One catch: a locked screen still accepts keystrokes — into the password field. It doesn’t block input at the hardware level, it just requires the right input to get past. That’s fine for security; it does nothing about a cat generating a screenful of stray characters in whatever app has focus before the screen saver kicks in.
Actually disabling input: no built-in way
For that, macOS has nothing native — this is a third-party-only category. KeyboardCleanTool, by folivora.AI (makers of BetterTouchTool), is a free, single-purpose app that blocks keyboard and trackpad/Touch Bar input until you press a release combo. Checked in August 2026: still distributed directly from the developer’s site with a 2026 copyright; it has no App Store listing because Apple reportedly rejected it as “not useful” for a store submission, which is a distribution detail, not a red flag — direct-download utilities are normal in the Mac tools space. An open-source alternative, keyboard-cleaner on GitHub, does the same job, but its repository shows only 14 commits and no recent release activity — check its issue tracker yourself before relying on it for more than an occasional wipe-down. Neither app was installed or run here.
What doesn’t help
Screen Time (System Settings → Screen Time) restricts app and content usage per account; Family setup gates what a managed account can open. Neither touches keyboard input, and neither stops a cat.
For the adjacent case of shutting the machine down entirely from the keyboard, see shutting down a MacBook with the keyboard.