Fix
Cursor Keybindings Not Working? Chords and Broken Imports
Cursor keybindings usually break for one of three reasons: a moved chord leader, a dead imported binding or another binding shadowing yours. Cursor moved two-step chords off ⌘CtrlK, so the leader is ⌘R on Mac. On Windows and Linux, try CtrlR, then CtrlM. Imported VS Code bindings can arrive with dead '(arbitrary function)' when clauses.

On this page
Why do my Cmd+K shortcuts do the wrong thing?
Cursor took ⌘CtrlK for its own AI features, so every two-step VS Code chord in your muscle memory moved. A Cursor staff answer on the forum explains the change: "⌘CtrlK is used for the inline edits. We therefore changed the keychord leader key to be ⌘R on Mac and CtrlM on Windows and Linux." Cursor has since replaced inline edit, and in the editor ⌘K now opens the agent with your selection referenced. The chord leader stayed on ⌘R through that change.
- Muscle memory (VS Code)
- ⌘K ⌘S (keyboard shortcuts)
- Cursor equivalent
- ⌘R ⌘S
- Muscle memory (VS Code)
- ⌘K ⌘W (close all editors)
- Cursor equivalent
- ⌘R ⌘W
- Muscle memory (VS Code)
- ⌘K Z (zen mode)
- Cursor equivalent
- ⌘R Z
| Muscle memory (VS Code) | Cursor equivalent |
|---|---|
| ⌘K ⌘S (keyboard shortcuts) | ⌘R ⌘S |
| ⌘K ⌘W (close all editors) | ⌘R ⌘W |
| ⌘K Z (zen mode) | ⌘R Z |
Mac shown. On Windows and Linux, try Ctrl+R first, then Ctrl+M. The leader itself is configurable from the Keyboard Shortcuts settings.
Check this before you open any settings file. It costs nothing, and the failure doesn't look like breakage: the key still does something, so it is easy to go looking for a corrupted config instead of a moved leader.
Cursor's own help page reflects the change: its instructions for reaching the shortcuts screen now start with ⌘R.
The Windows story is muddier than the table makes it look. The same help page gives the Windows and Linux route as CtrlR then CtrlS, not the CtrlM in the staff answer. On Windows, press CtrlR first and keep CtrlM as the fallback, instead of guessing which source is out of date. Test both once and keep whichever your build answers to.
This is covered hands-on in Troubleshooting and Operating Cursor Reliably — 7 short Units, free to read.
Should I move the chord leader back to Cmd+K?
That depends on how many chords you use. Moving the leader back means sharing ⌘K with Cursor's own shortcut, which now opens the agent with your selection, so you need a when clause to keep the two apart. If you use two or three chords, remapping them by hand is less configuration than that. The keybindings.json guide has the setting if you want it anyway.
The size of the move decides what else to do. On a team of two, telling each other that the leader moved is enough. Migrate fifty engineers in a week and that one fact arrives as fifty tickets, so put it in the migration note next to the import steps.
Why did my imported VS Code keybindings stop firing?
Users who imported VS Code settings have found entries in Cursor whose when fields read (arbitrary function). That placeholder is left when a condition could not be carried across the import, and a binding with that clause never fires, without any error. Delete and rebind these entries instead of repairing them:
- 1Open Preferences: Open Keyboard Shortcuts (JSON) from the command palette and delete every entry whose
whenis(arbitrary function). - 2Rebind the survivors you use through the Keyboard Shortcuts UI (right-click a command → change keybinding), so Cursor writes valid conditions itself.
- 3For anything that needs a precise scope, write the
whenclause by hand. The keybindings.json reference covers the syntax and context keys.
The steps say delete rather than fix because the condition did not survive the import, and the placeholder is all that is left of it. The silence is what makes it expensive: Cursor raises no error when a binding with that clause fails to fire.
This comes from a forum thread with a staff reply, not from documentation, so look for it in a migrated setup instead of expecting it everywhere.
Rule out a related cause in the same pass. The one-click import carries your extensions across with your keybindings, and Cursor installs them from Open VSX, a different registry, which doesn't list every Marketplace extension. A binding whose command belonged to an extension that didn't make the trip has nothing left to call. Confirm the extension is installed before you rewrite the key.
How do I find what's stealing my shortcut?
When a key does something unexpected, or nothing, ask the editor instead of guessing. Two built-in tools answer the question definitively:
- 1Run Developer: Toggle Keyboard Shortcuts Troubleshooting from the command palette, press the key, and read the log. It shows every rule the keystroke matched and which binding won.
- 2In the Keyboard Shortcuts UI, search by the key itself (type the combination into the search box) to see every command competing for it and each one's
whenclause. - 3Fix it by narrowing scope: give your binding a focus guard such as
editorTextFocus, or disable the competing default by re-adding it with a minus-prefixed command in keybindings.json.
Of the two fixes in that last step, narrow the scope first, even though the minus-prefixed line is quicker to reach for. Disabling a default takes one line and removes the command everywhere in your editor, including the context where you were glad to have it, and in six months you won't remember doing it. A when clause keeps both bindings alive at the cost of one expression. Save the removal for a default you never want.
Some "broken" bindings are editor shortcuts firing while focus sits in the chat input, or the reverse. If a key works in one pane and not another, the binding needs a when clause, not a different key.
One last case is not a keybinding problem at all: a shortcut can fire correctly into a feature that has nothing to act on. Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition. has nothing to select until your app is rendering in the browser panel, so ⌘⇧D pressed at an empty panel can look like an inert key. Confirm that the thing your shortcut opens has something to work on before you edit keybindings.json over it.
Could another extension be stealing the key?
It can. Cursor's troubleshooting page says extensions that provide their own AI completions or intercept keyboard shortcuts can conflict with Cursor's AI shortcuts, and that other AI coding assistants are the most common source. That matters right after a migration, because whatever grabbed your keys in VS Code arrived in the same import.
- 1Run Disable All Installed Extensions from the command palette, then press the shortcut again.
- 2If it works now, re-enable extensions one at a time until it breaks. The last one you enabled is your conflict.
- 3Disable the culprit for good from the Extensions panel (⌘⇧X, or Ctrl⇧X on Windows and Linux): find it in the list and click Disable.
This check comes last on purpose. Bisecting an extension list is the most expensive thing on this page, and the troubleshooting log above usually names a competing binding long before you need it. Use the bisect when the log shows nothing matching your keystroke at all.
Frequently asked questions
How do I get my Cmd+K chords back in Cursor?
Change the chord leader: search the Keyboard Shortcuts settings for the keychord leader and set it to ⌘K. You then share the key with Cursor's own ⌘K shortcut, which opens the agent with your selection, so scope one of them with a when clause.
What does when '(arbitrary function)' mean in my keybindings?
It is a placeholder left by a VS Code settings import when a binding's condition couldn't be translated. Bindings that carry it never fire. Delete those entries and rebind through Cursor's Keyboard Shortcuts UI.
How do I see why a shortcut isn't firing?
Run Developer: Toggle Keyboard Shortcuts Troubleshooting from the command palette and press the key. The log shows each rule the keystroke matched and which binding won, which names the culprit right away.
Can an extension override a Cursor keyboard shortcut?
Yes. Cursor's troubleshooting page says extensions that provide their own AI completions or intercept keyboard shortcuts can conflict, and that other AI coding assistants are the most common source. Run Disable All Installed Extensions from the command palette, test the key, then re-enable extensions one at a time to find the one that takes it.
Can I reset all Cursor keybindings to defaults?
Your customizations live in keybindings.json, which opens with Preferences: Open Keyboard Shortcuts (JSON). Emptying that file's array returns you to Cursor's defaults, which is safer than hunting individual entries when an import has made a mess.
Sources & last verified
- Cursor Docs - Keyboard Shortcuts
- Cursor Help - Keyboard shortcuts
- Cursor Help - Extensions troubleshooting
- Cursor Help - Migrate from VS Code
- Cursor Forum - Imported keybindings with '(arbitrary function)' when clauses (staff answer)
- VS Code Docs - When Clause Contexts
- Cursor Help - Agent mode
Cursor ships frequently. Last updated October 28, 2026.