Option+Left or Option+Right should move cursor to beginning/end of the word. We weren't listening to what terminals are sending (on MacOS) and were therefore printing b or f instead of moving cursor. We were actually in the first match clause and returning char insertion (https://github.com/openai/codex/pull/1895/files#diff-6bf130cd00438cc27a38c5a4d9937a27cf9a324c191de4b74fc96019d362be6dL209) Tested on Apple Terminal, iTerm, Ghostty