Keyboard Cleaner for Mac: Lock Input While You Wipe
A “keyboard cleaner” is a small utility that freezes your input so you can wipe the keys without typing. The idea has been around for years on the Mac — here's what the classic tools did, where they fall short today, and how to lock both the keyboard and the trackpad on a modern macOS.
What a keyboard cleaner actually does
It doesn't clean anything itself. A keyboard cleaner simply blocks input — usually by throwing up a black full-screen window and swallowing every keystroke — so that scrubbing the keys doesn't type into your documents or trigger shortcuts. The cleaning is still down to you and a cloth; the app just gets your Mac out of the way.
The old free apps — and where they fall short
For years the go-to was a tiny freeware app that blanked the screen while you wiped. It worked, but on today's Macs it shows its age:
- Most only block the keyboard — the trackpad keeps moving the pointer and registering clicks.
- Many are unmaintained, unsigned, and not notarized, so Gatekeeper on current macOS flags them or refuses to open them.
- There's usually no timer — you're relying on a single keypress to get back out, with no automatic release if something goes wrong.
A modern keyboard cleaner: Mainspring's Clean Mode
Mainspring builds this in as a first-class feature, updated for current macOS and signed and notarized by Apple. Its Clean Mode locks the keyboard and the trackpad, runs on a timer, and dims to near-black so you can see what you're cleaning:
- Open Mainspring from your menu bar and choose Clean keyboard, or open the main window and find the Clean Mode card under Power.
- The first time, macOS asks for Accessibility access — that permission is what lets an app intercept key presses and clicks. Click Open Accessibility Settings, switch Mainspring on, and try again. You only do this once.
- Pick how long you need: 30 seconds, 1 minute, or 3 minutes.
- The screen dims to near-black and every keypress, click, and trackpad swipe is ignored. Wipe away.
- Input comes back on its own when the timer ends — or hold Esc for about three seconds to finish early.
A quick cleaning checklist
- Blow dust and crumbs from between the keys with a can of compressed air held at a slight angle.
- Wipe the keys with a soft, lint-free cloth lightly dampened with water — wring it out first, and never spray liquid directly onto the Mac.
- Per Apple's guidance you may use a 70% isopropyl alcohol wipe to gently clean the hard surfaces; keep moisture away from any opening or port.
- Skip household cleaners, bleach, and anything abrasive.
Mainspring's Clean Mode is a modern keyboard cleaner: it locks the keyboard and trackpad together, runs on a 30-second to 3-minute timer, and is signed and notarized by Apple so it opens cleanly on the latest macOS.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once