def on_key_press(self, symbol, modifiers):
        if symbol == pyglet.window.key.F and (modifiers & pyglet.window.key.MOD_ACCEL):
            director.window.set_fullscreen(not director.window.fullscreen)
            return True

        elif symbol == pyglet.window.key.P and (modifiers & pyglet.window.key.MOD_ACCEL):
            import cocos.scenes.pause as pause
            pause_sc = pause.get_pause_scene()
            if pause:
                director.push(pause_sc)
            return True

        elif symbol == pyglet.window.key.W and (modifiers & pyglet.window.key.MOD_ACCEL):
            # import wired
            if not self.wired:
                gl.glDisable(gl.GL_TEXTURE_2D)
                gl.glPolygonMode(gl.GL_FRONT, gl.GL_LINE)
                gl.glPolygonMode(gl.GL_BACK, gl.GL_LINE)
                # wired.wired.install()
                # wired.wired.uset4F('color', 1.0, 1.0, 1.0, 1.0 )
                self.wired = True
            else:
                gl.glEnable(gl.GL_TEXTURE_2D)
                gl.glPolygonMode(gl.GL_FRONT, gl.GL_FILL)
                gl.glPolygonMode(gl.GL_BACK, gl.GL_FILL)
                self.wired = False
                # wired.wired.uninstall()
            return True

        elif symbol == pyglet.window.key.X and (modifiers & pyglet.window.key.MOD_ACCEL):
            director.show_FPS = not director.show_FPS
            return True

        elif symbol == pyglet.window.key.I and (modifiers & pyglet.window.key.MOD_ACCEL):
            from .layer import PythonInterpreterLayer

            if not director.show_interpreter:
                if director.python_interpreter is None:
                    director.python_interpreter = cocos.scene.Scene(PythonInterpreterLayer())
                    director.python_interpreter.enable_handlers(True)
                director.python_interpreter.on_enter()
                director.show_interpreter = True
            else:
                director.python_interpreter.on_exit()
                director.show_interpreter = False
            return True

        elif symbol == pyglet.window.key.S and (modifiers & pyglet.window.key.MOD_ACCEL):
            import time
            pyglet.image.get_buffer_manager().get_color_buffer().save((int(time.time())) % 'screenshot-%d.png')
            return True

        if symbol == pyglet.window.key.ESCAPE:
            director.pop()
            return True
dataset/ETHPy150Open los-cocos/cocos/cocos/director.py/DefaultHandler.on_key_press/swapped operands of `%`