Support backspace key in command line