Option + left arrow writes 'D' character

not sure how this started happening but whenever i use the integrated terminal and try to jump to the previous word using alt/option + left arrow, the character ‘D’ is written instead. when i use macos terminal.app, the keyboard combination works as expected (jumps to previous word). here’s a demo:

here are the global keyboard bindings (keybindings.json):

// Place your key bindings in this file to override the defaults
[
    {
        "key": "cmd+i",
        "command": "composerMode.agent"
    },
    {
        "key": "alt+cmd+[",
        "command": "editor.fold",
        "when": "editorTextFocus"
    },
    {
        "key": "cmd+k cmd+0",
        "command": "editor.foldAll",
        "when": "editorTextFocus && foldingEnabled"
    },
    {
        "key": "cmd+r cmd+0",
        "command": "-editor.foldAll",
        "when": "editorTextFocus && foldingEnabled"
    },
    {
        "key": "cmd+k cmd+j",
        "command": "editor.unfoldAll",
        "when": "editorTextFocus && foldingEnabled"
    },
    {
        "key": "cmd+r cmd+j",
        "command": "-editor.unfoldAll",
        "when": "editorTextFocus && foldingEnabled"
    },
    {
        "key": "ctrl+w",
        "command": "-workbench.action.switchWindow"
    },
    {
        "key": "ctrl+shift+/",
        "command": "workbench.action.toggleMaximizedPanel"
    }
]

here’s the cursor about info:

“”"
Version: 3.4.17 (Universal)
VSCode Version: 1.105.1
Commit: 93e603f703cd553a6bb3644711a3379bbbb31180
Date: 2026-05-13T21:39:55.724Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.5.0
“”"

Hi @kgal-akl,
This is a known regression in the latest updates. Merging this into the main tracking thread: Option + Arrow keys no longer work in the integrated terminal.

The most reliable workaround is to add this to your keybindings.json (Cmd+Shift+P > Preferences: Open Keyboard Shortcuts (JSON)):

[
{
"key": "alt+right",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001bf" },
"when": "terminalFocus"
},
{
"key": "alt+left",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001bb" },
"when": "terminalFocus"
}
]

Our team is actively tracking the fix.

Hey @kgal-akl,
The Option+Arrow word-navigation issue in the integrated terminal was fixed in a recent Cursor update. Updating to the latest version should resolve this — let me know if you still hit it.

confirm fix in:

Version: 3.5.38 (Universal)
VSCode Version: 1.105.1
Commit: 009bb5a3600dd98fe1c1f25798f767f686e14750
Date: 2026-05-26T21:32:06.537Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.5.0