MainspringGuides › Keyboard cleaner
macOS Guide

Keyboard Cleaner for Mac: Lock Input While You Wipe

Updated July 2026 · 2 min read

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:

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:

  1. Open Mainspring from your menu bar and choose Clean keyboard, or open the main window and find the Clean Mode card under Power.
  2. 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.
  3. Pick how long you need: 30 seconds, 1 minute, or 3 minutes.
  4. The screen dims to near-black and every keypress, click, and trackpad swipe is ignored. Wipe away.
  5. Input comes back on its own when the timer ends — or hold Esc for about three seconds to finish early.

A quick cleaning checklist

A keyboard cleaner that's actually maintained

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