Add handling for backspace