keyboard input cleaned up with next and done