Implemented the keyboardHandle function in Client