Lock Keyboard For Cleaning: Wipe every key, type nothing
In the village: on my desk
Wipe a Mac's keyboard while it's on and it starts typing. Stray letters land in whatever's open, and brushing the top row turns the volume up or dims the screen. Shutting down to clean it means closing everything you were working on.
Lock Keyboard For Cleaning is a free Mac app that stops every key from typing until you unlock it. There's no shutdown, and your apps stay just as you left them.
As you wipe, you can see on screen which keys you've missed. When you're done, click Tap to Unlock or close the window.

Ready: tap to lock 
Locked: every key stops listening 
Wiped keys start to glow orange 
Brighter where you've wiped more 
White means a proper wipe
- Locks every key with one click, even volume and brightness.
- Lights up the keys you've wiped, orange turning to white.
- Leaves your mouse and trackpad working while the keys are locked.
Free, for Macs on macOS 14 or later.