Blog · October 18, 2026 · 7 min read

How to Lock Your Mac Keyboard (and Trackpad) While Watching a Movie: Five Methods, What Each Actually Locks, and Which Keeps the Film Playing

The film is forty minutes in. The MacBook is on the duvet, or on the coffee table, or propped on the kitchen counter, and something touches the keyboard: a foot, a cat, a child reaching for the popcorn, your own elbow. The spacebar pauses it. An arrow key skips ten seconds. A stray swipe on the trackpad drags the window to another Space and now you are looking at your email. Searching how to lock a Mac keyboard while watching a movie turns up a lot of answers that lock the screen too, which is the one thing you do not want. This post goes through the five ways people actually try, says what each one locks and what it leaves open, and is honest about where VibeLock, our own app, fits.

What you actually need

The requirement is narrower than “lock the Mac”. You want the picture to keep playing, the display to stay awake, every key and every trackpad gesture ignored, and a way back in that does not involve a reboot. Anything that darkens the screen fails the first test; anything that only disables the keyboard fails the trackpad test; anything that puts the Mac to sleep fails all of them. Keep that list in mind as you read the methods, because most of them satisfy two of the four.

Method 1: the macOS lock screen (Control-Command-Q)

The built-in lock screen is the first thing everyone tries. It protects the Mac, in the sense that nobody can get into your apps, but it blanks the display to the login screen, so the film is gone. Keys still do things: the keyboard types into the password field, and brightness and volume keys still respond. For a movie it fails the one test that matters. The screen saver with a password has the same problem in a prettier wrapper. Our post on locking the keyboard while keeping the screen on goes into why macOS has no built-in option for this.

Method 2: keyboard-cleaning utilities

KeyboardCleanTool, a free utility from the maker of BetterTouchTool, is the best known. It blocks keyboard input, can optionally block the trackpad and mouse clicks, and keeps the Mac awake, which is three of the four. The catch is in the name: it is designed for cleaning, so it darkens the screen while locked. You can see the elapsed timer; you cannot see the film. Newer notch-based lockers such as Kleanly advertise locking the keyboard and trackpad while a video plays, with a double-tap on the trackpad to unlock. That is closer, but the unlock gesture is the weakness: the same stray touch that paused your film can now unlock the keyboard, and a cat walking across the trackpad is a double-tap waiting to happen. Fine for a wipe-down, less reassuring for two hours in the dark. The keyboard cleaning mode post compares these for their actual job.

Method 3: Karabiner-Elements or a custom key map

Karabiner-Elements can remap or disable keys, and with some effort you can build a profile that maps the whole keyboard to nothing and switch to it before pressing play. It is powerful and free. It is also a keyboard tool: it does not touch the trackpad, it needs you to remember to switch profiles both ways, and if you switch to the blank profile and then need to pause the film you are reaching for the trackpad anyway, which is still live. For people who already run Karabiner it is a workable hack; for everyone else it is a lot of configuration to solve a two-hour problem.

Method 4: a Bluetooth keyboard and closing the lid

The physical workaround: plug the Mac into an external display or TV, close the lid so the built-in keyboard and trackpad are out of reach, and control playback from a Bluetooth keyboard you keep on your side of the sofa. This works well when you own the extra hardware and the Mac is in clamshell mode, and it is the right answer for a projector night. It does nothing for the common case, which is the laptop itself being the screen, and the external keyboard is now the thing the child can reach.

Method 5: VibeLock

VibeLock is a $10 macOS menu bar app, and this is the use case we built it for alongside leaving AI agents running visibly while you step away. You allow the app you are watching in, lock, and from that moment a system-wide event tap swallows every key, click, scroll and gesture on the built-in keyboard and trackpad and on anything plugged in. Every app not on your allowlist is hidden and kept hidden, including on other Spaces, and the display is held awake, so the film keeps playing at full brightness with nothing in front of it. Spotlight, Force Quit and Command-Q are blocked while locked, so a sequence of random keypresses cannot quit the player or the lock. Unlocking is Touch ID, or your Mac login password typed into VibeLock, verified locally; there is no gesture a cat can perform by accident.

Against the four tests: the picture keeps playing, the display stays awake, keyboard and trackpad are both ignored, and the way back in is your fingerprint. The earlier post on keeping a video playing while the Mac is locked walks through the setup for a specific player; the short version is to allow the player or the browser, start the film, and lock from the menu bar.

The honest trade-offs

  • You cannot pause without unlocking. VibeLock blocks input completely, so a quick pause means a Touch ID press first. If you pause a lot, that is a few extra seconds each time; most people find it worth it for not being paused by a toe.
  • It needs the Accessibility permission. macOS asks for it on first lock, because that is the permission input blocking requires. VibeLock makes no network calls, has no accounts, is a native Swift app of about 2 MB, and is signed with an Apple Developer ID and notarized, but you should still only grant that permission to apps you trust.
  • It is macOS 13 Ventura or later. Older Macs are out, and it costs $10 once, where the cleaning utilities are free.
  • It is not a security lock in the lock-screen sense. Your allowed app is visible to anyone in the room. For a movie that is the point; for a laptop left in a cafe, use the real lock screen, as the cafe post explains.

Which one to pick

If you only want the keys dead for a minute while you wipe the keyboard, a free cleaning utility is fine. If you have a TV, a cable and a spare keyboard, clamshell mode is free too. If the laptop is the screen and the audience includes small hands, paws or your own tired limbs, you want the keyboard and the trackpad both locked, the screen bright, and an unlock that is deliberate. That is the gap the built-in options leave and the one VibeLock was made to fill.

Keep reading