Handle backspace and delete properly when on the first character.