Handle backspace