wipe the remainder of the line on newlines
added rudimentary keyboard input