Socket Server and client for sending key presses to client