support backspace
support enter key