Clean your keyboard without typing gibberish

KeyClean locks your Mac's keyboard while you wipe it down. To unlock, hold a button with the trackpad.

Download for Mac

Free · Version 1.0 · 2.7 MBApple silicon · macOS 26Tested on macOS 26.5.1

Install from Terminal

Lock it, then try to type.

This is the lock screen from the app. Press any key. It lights up and that's all.

The demo needs a physical keyboard. Open this page on your Mac to try it.

KeyClean

Ready

To unlock it, hold the button with the trackpad.

KEYCLEAN

Keyboard locked

Go ahead and clean. The keys do nothing.

Hold for a second and a half. From the keyboard, hold Space on this button.

The Touch ID button stays active. Go gently with the cloth there.

The demo only stops keys inside this page. Shortcuts like Command-W still reach your browser. The app stops those too.

Lock, clean, hold.

  1. Lock

    Click the KeyClean icon in the menu bar, then Blocca tastiera (lock keyboard). The screen turns white, so you can see the dust.

  2. Clean

    No key responds. That includes Command, Option and the other modifiers, and the brightness and volume keys.

  3. Hold

    Hold the button on screen for a second and a half, with the trackpad or a mouse. If the cloth brushes the trackpad, the lock stays on.

Three steps. Two are macOS asking.

KeyClean isn't signed with an Apple Developer ID, so macOS stops it the first time you open it. Then it needs your permission before it can block a key.

  1. Drag to Applications

    Open the disk image and drag KeyClean into the Applications folder.

  2. Open Anyway

    Open KeyClean. macOS blocks it. Go to System Settings > Privacy & Security, click Open Anyway at the bottom, then confirm with Open. You do this once.

  3. Turn on Accessibility

    Click the KeyClean icon in the menu bar, then Apri Impostazioni (open Settings). In Privacy & Security > Accessibility, switch KeyClean on. Back in the panel, the lock button is ready.

Or install from Terminal

The script downloads KeyClean, checks its SHA256, copies it to Applications and opens it. macOS doesn't block files downloaded from Terminal, so you skip step 2. You still turn on Accessibility by hand.

curl -fsSL https://github.com/alessiocardelli/keyclean/releases/latest/download/install.sh | bash

It drops your keys. It doesn't read them.

To stop a keypress before it reaches your apps, macOS requires the Accessibility permission. It's a broad one, and an app that holds it could see what you type. KeyClean uses it while the lock is on, to throw the keypresses away. It keeps no record of them. The app has no network code and collects no data. The lock lasts only as long as the app is running, so if KeyClean quits for any reason your keyboard works again.

Read the code on GitHubMIT licence

Questions

KeyClean runs on a Mac.

It needs Apple silicon and macOS 26. Copy the link and open this page on your Mac.