added basic support for Emacs style key bindings