Added "enter to send" code.

Allow user to press enter to send their code out.
Added chat reading.