GH-12: fix arrow bindkey and support emacs & vicmd
Merge branch 'bindkey'; closes issue #12