Fix #116: add option to add keyboard handler "vim" and "emacs"