Skip to content

Instantly share code, notes, and snippets.

@mikbuch
Created October 29, 2020 09:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mikbuch/1c5f49b8fa54380b05577e125309221a to your computer and use it in GitHub Desktop.
from psychopy import visual, core, event
win = visual.Window([400,400])
win.flip()
while True:
keys = event.getKeys()
if 'q' in keys:
core.quit()
for key in keys:
print(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment