Added new KeyListener class that seems to work well with connecting to the server.