A lightweight macOS utility that temporarily locks your keyboard for cleaning. Prevents accidental key presses while cleaning your MacBook, Magic Keyboard, or any external keyboard connected to your Mac.
- Complete Keyboard Blocking: Safely cleans your MacBook keyboard without triggering unwanted actions
- Multi-Display Support: Works seamlessly across all connected monitors
- Easy ESC Escape: Quickly unlock with a single ESC key press
- Modern macOS Design: Clean, native UI that follows Apple design guidelines
- Privacy Focused: Zero data collection, runs entirely on your local machine
- Energy Efficient: Minimal CPU and memory usage
- Universal Binary: Runs natively on both Apple Silicon and Intel Macs
- Visit the Releases page
- Download the latest
KeyboardBlocker.app.zipfile - Extract and move to your Applications folder
β οΈ First time: Control+click and select "Open" to bypass Gatekeeper
- Clone this repository:
git clone https://github.com/huseyinaslim/macos-keyboardblocker.git - Open Terminal and navigate to the project directory
- Run
swift build -c release - Find the built executable at
.build/release/KeyboardBlocker
- Launch KeyboardBlocker app
- Grant Input Monitoring permission when prompted (required to block keyboard input)
- Click "Lock Keyboard" when you're ready to clean
- Clean your keyboard without worrying about accidental keypresses
- Press the ESC key to unlock when finished
KeyboardBlocker runs entirely on your local machine and does not collect or transmit any data. The Input Monitoring permission is required solely to intercept and block keyboard events during cleaning.
- macOS 11 (Big Sur) or later
- Compatible with Apple Silicon (M1/M2/M3/M4) and Intel Macs
- Minimal disk space required (< 5MB)
Contributions are welcome! Here's how you can help:
- Report bugs or suggest features through Issues
- Submit improvements through Pull Requests
- Share the app with other Mac users
This project is licensed under the MIT License - see the LICENSE file for details.
If you find KeyboardBlocker useful, please consider sponsoring its development. Your support helps maintain this project and create new features!
macOS keyboard cleaner, MacBook keyboard lock, keyboard cleaning utility, disable MacBook keyboard, prevent keyboard input, keyboard blocker, Mac keyboard cleaning tool, keyboard lock app, Mac keyboard disabler
