Added backspace (DEL) and done (END) key functionality.