Added an exception for socket.error so as to not crash the server when a client disconnects.
Changed button events to catch keyboard activations; added a on_post_msg event; fixed a typo