пиглет на кнопке нажмите
@win.event
def on_key_press(key, modifiers):
if key == pyglet.window.key.UP:
print("UP")
Flyhouse_Squarewheel
@win.event
def on_key_press(key, modifiers):
if key == pyglet.window.key.UP:
print("UP")