Changed keybindings so the mode works well in terminal.