# Keyboard Shortcuts

> A searchable keyboard-shortcuts cheat sheet. Press ? to pop a grouped, filterable list of every hotkey - written once as compact strings like 'mod+k' and rendered as platform-aware keycaps (Cmd on Mac, Ctrl elsewhere). Focus-trapped, Esc to close, reduced-motion aware, light and dark. Ships as <ShortcutsDialog> plus a useShortcuts() hook. React and framer-motion only, zero config.

- Author: [Kiki](https://21st.dev/@laziekiki)
- License: mit
- Tags: Keyboard, Dialog
- npm dependencies: framer-motion
- Live preview: https://21st.dev/@laziekiki/components/keyboard-shortcuts

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/laziekiki/keyboard-shortcuts?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/keyboard.md
