Implement expected return/backspace behaviour