Fixed an issue with line breaks being displayed in the command prompt, fixed a nullpointer exception when using the escape key.