Keep and record editor mode
Introduce editorAction so that all keybindings can be implemented as func
Implement all editor bindings as functions
Implement very basic command mode keybindings
When there are no completions, set mode to ModeInsert