Added backspace and enter support