Readline-style key binding in command-line