code: def on_release(self, window, key, scancode, action, mods):
          
  
          # controls for grasping
          if key == glfw.KEY_SPACE:
              self.grasp = not self.grasp  # toggle gripper
  
          # user-commanded reset
          elif key == glfw.KEY_Q:
              self._reset_state = 1
              self._enabled = False
              self._reset_internal_state()
docs: Key handler for key releases.