A macOS utility to temporarily lock your keyboard and mouse
English | 日本語
Want to prevent your child from accidentally pressing keys or moving the mouse? Need to avoid unintended input during a presentation? Want to clean your keyboard or mouse without triggering accidental inputs? LockKM has you covered.
Lock your keyboard and mouse with a single click, and unlock instantly with a customizable key combo. Built-in auto-unlock ensures you're never locked out.
| Settings | Menu Bar | Lock Overlay |
|---|---|---|
![]() |
![]() |
![]() |
- Keyboard Group Lock - Disables keyboard and keypad input
- Pointing Device Group Lock - Disables mouse and trackball movement, clicks, and scrolling; pins cursor position
- Selective Locking - Choose which device group to lock
- Simultaneous Lock - Lock keyboard and pointing device at the same time — perfect for cleaning them all at once
- Custom Key Combo - Unlock with any key combination (default:
⌘ ⇧ Esc) - Key Combo Recorder - Intuitively record and change your unlock combo in settings
- Auto Unlock - Automatically unlocks after a set duration (30 seconds to 1 hour)
- Safety Timer - Countdown always visible during lock
- Overlay HUD - Displays remaining time and unlock key combo in the top-right corner
- Forced Timeout - Auto-unlock guarantees you're never permanently locked out
- Restart Clears Lock - Restarting your Mac automatically releases the lock
- One-Click Operation - Toggle lock/unlock instantly from the menu bar
- Status Indicator - See lock state at a glance via icon color
- Device Selection - Change lock target devices directly from the menu bar
- Dock-Free - Runs as a menu bar app without occupying the Dock
Supports 7 languages:
| Language | Code |
|---|---|
| English | en |
| 日本語 | ja |
| Español | es |
| Français | fr |
| 한국어 | ko |
| 简体中文 | zh-Hans |
| 繁體中文 | zh-Hant |
- Cleaning Reminder - Get notified via notification banner when a specified number of days have passed — a reminder to clean your keyboard and mouse
- Launch at Login - Register as a macOS login item for automatic startup
- Lightweight - Minimal resource usage while running in the background
| Item | Requirement |
|---|---|
| OS | macOS 14 (Sonoma) or later |
| Processor | Apple Silicon / Intel |
| Permissions | Accessibility permission required |
- Download the latest release from the Releases page
- Open the
.dmgand drag LockKM to your Applications folder - Launch LockKM
- Go to System Settings > Privacy & Security > Accessibility and enable LockKM
Note: Accessibility permission is required on first launch. This permission is used to control keyboard and mouse events.
- Click the LockKM icon in the menu bar
- Select the device group to lock (Keyboard / Mouse)
- Click the "Lock" button
- To unlock, press your configured key combo (default:
⌘ ⇧ Esc)
BSD 3-Clause License - See LICENSE for details.
LockKM has been available for free on Mac since 2026.


