Keyboard shortcuts that make your site feel grown-up

The little things separate a hobby page from a real product. One of the biggest: a visitor presses ⌘ K and a search box jumps up — no hunting for a magnifying glass. It's a few lines of code, and your agent can add it for you. Here's the pattern, and the conventions worth following.

Why shortcuts matter

Keyboard shortcuts say "someone who knows what they're doing built this." They make frequent actions instant for power users, they keep hands off the mouse, and — done right — they help people who can't use a mouse at all. On this site, pressing ⌘ K (or Ctrl K) opens the Academy command palette; / does the same; Esc closes it. Try it now, then come back.

The conventions people already expect

Don't invent new shortcuts where common ones exist — match what people's fingers already know:

ShortcutWhat it conventionally does
⌘ K / Ctrl KOpen search / command palette. The de-facto standard (Slack, Linear, VS Code, GitHub).
/Jump to search — only when the visitor isn't already typing in a field.
EscClose the open thing (modal, palette, menu).
?Show a "keyboard shortcuts" help panel.
· EnterMove through results and choose one.

We did exactly this on this site

The Academy's own command palette is the worked example. Its rules are worth copying:

Accessibility — the four rules that keep it kind

Ask your agent for it

You don't write this by hand. Describe what you want and let the agent build it the proven way — copy this:

Add a keyboard-shortcut layer to my site like Flowsmith Academy's:
- ⌘K / Ctrl+K opens a search/command palette; "/" also opens it but ONLY
  when the user isn't typing in an input/textarea/contenteditable.
- Arrow keys move through results, Enter selects, Esc closes.
- The palette is a real modal: role="dialog", aria-modal="true", focus
  moved in and trapped (Tab/Shift+Tab cycle), focus restored on close.
- Show a faint "⌘K" hint in the search box, and a "?" help panel listing
  the shortcuts. Respect prefers-reduced-motion. No external libraries.
Pro: turn this into a skill once and every future site gets the same grown-up shortcuts with one instruction — that's the whole point of teaching the agent a recipe.

Where next