I use Iterm2 in Macbook and use Natural Text Editing mode in Preference -> Profiles -> Keys TAB in terminal console \'⌘ + ->\'(send Hex code 0x5) key make cursor mo