enter sends, and clears sent text unless there was an error