Simplify text input and improve backspace handling