Currently, if a command is typed and the user presses the left arrow or right arrow, the shell prints out a warning that the entered special character is unknown. This causes the shell to also start a new prompt but the buffer isn't cleared in the background. The result of this is that the next command will be appended to the existing buffer.