# Keyboard bindings contains "when":"(arbitrary function)" and doesn't work

**URL:** <https://forum.cursor.com/t/keyboard-bindings-contains-when-arbitrary-function-and-doesnt-work/2446>\
**Category:** Help\
**Created:** [January 17, 2024, 12:23pm UTC](https://forum.cursor.com/t/keyboard-bindings-contains-when-arbitrary-function-and-doesnt-work/2446 "2024-01-17T12:23:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![da1d](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@da1d](https://forum.cursor.com/u/da1d)\
**Post date:** [January 17, 2024, 12:23pm UTC](https://forum.cursor.com/t/keyboard-bindings-contains-when-arbitrary-function-and-doesnt-work/2446/1 "2024-01-17T12:23:15Z")

</div>

I’ve been trying out Cursor and it’s looking good, but the most common keyboard shortcuts used, like cmd+K and cmd+L doesnt work - maybe they collided with other ones when i imported settings from VS Code?

The “when” statement says “(arbitrary function)” in a lot of places, and the shortcuts don’t work.

What should i replace it with? Or just remove it?

{ “key”: “cmd+backspace”, “command”: “aichat.cancelchat”, “when”: “activeAIChatEditor || view == ‘workbench.panel.aichat.view’ && (arbitrary function)” },

{ “key”: “cmd+[Period]”, “command”: “cursor.aichat.toggleChatMode”, “when”: “(arbitrary function) && (arbitrary function)” },

{ “key”: “cmd+enter”, “command”: “cursorai.action.executeInterpreterAction”, “when”: “(arbitrary function)” },

{ “key”: “cmd+u”, “command”: “cursorai.action.retryInterpreterAction”, “when”: “activeAIChatEditor || view == ‘workbench.panel.aichat.view’ || (arbitrary function) && (arbitrary function)” },

{ “key”: “shift+cmd+backspace”, “command”: “aiInterfaceAgent.pauseInterfaceAgent”, “when”: “(arbitrary function)” },

{ “key”: “shift+cmd+enter”, “command”: “aiInterfaceAgent.startInterfaceAgent”, “when”: “(arbitrary function)” },

{ “key”: “shift+cmd+e”, “command”: “aichat.fixerrormessage”, “when”: “(arbitrary function)” }

Thanks,  
D

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [January 24, 2024, 9:41pm UTC](https://forum.cursor.com/t/keyboard-bindings-contains-when-arbitrary-function-and-doesnt-work/2446/2 "2024-01-24T21:41:24Z")

</div>

Check out this:

> [@How do I change the keychord bindings?](https://forum.cursor.com/t/how-do-i-change-the-keychord-bindings/760/2):
>
> In Cursor, Cmd/Ctrl+K is used for the inline edits. We therefore changed the keychord leader key to be Cmd+R on Mac and Ctrl+M on Windows and Linux. For example, “Unfold all” is Cmd+R Cmd+J on Mac and Ctrl+M Ctrl+J on Windows and Linux. If you’re used to the VSCode keybindings, you can change the shortcut for workbench.action.keychord.leader in the keyboard shortcut settings (Cmd+R Cmd+S or Ctrl+R Ctrl+S). This will update all keychords. For example, you can set that to Cmd+K, and then change t…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:11am UTC](https://forum.cursor.com/t/keyboard-bindings-contains-when-arbitrary-function-and-doesnt-work/2446/3 "2026-06-18T10:11:46Z")

</div>

Closed on June 18, 2026, 10:11am UTC


