Added handling for newlines.

If the user hits return it adds a newline.