first part of standard text editing key bindings