Handle backspaces in input mode