or you could just do what I do and lock the screen real quick, wipe/clean the keyboard, and then unlock it again...
Sometimes when I wipe it with a cloth and cleaning liquid, I accidentally press some keys or trigger shortcuts. That’s why I made this small desktop app, this tiny macOS app that lets you toggle “Cleaning Mode” so key presses are ignored while you wipe the keyboard. It uses a global CGEvent tap to swallow key events, then restores them when you turn it off. No network, no analytics.
hopefully it helps you too. Don’t forget to leave a star, thanks!
Repo: https://github.com/rbayuokt/CleanKeys