Setting proper mode for backspace