code: def key_callback(self, window, key, scancode, action, mods):
          
          if key == glfw.KEY_ESCAPE and action == glfw.PRESS:
              glfw.SetWindowShouldClose(self.window, True)
docs: press ESCAPE to quite the application