def METHOD_NAME(self, _: rospy.timer.TimerEvent) -> None:
    """
    Sends the key to the keyboard server and stores the returned locked
    status and generated UUID (if one was received).
    """
    keycode = self.read_key()
    service_reply = self.keyboard_server(self.uuid, keycode)
    # Flashes the interface if the locked state has changed
    if self.is_locked != service_reply.is_locked:
        self.flash()
        self.refresh_status_text()
    self.is_locked = service_reply.is_locked
    if service_reply.generated_uuid != "":
        self.uuid = service_reply.generated_uuid
        self.refresh_status_text()
    self.refresh_status_text()