Line breaks are now correctly handled

Line breaks are now correctly handled when the enter key is hit.