Improved the key press handshake between server and users.