Changing quit experiment key press from escape

Hi @eyexciteme, to disable the escape key, go to your experiment settings, and deselect the Enable escape key option. In PsychoPy, once you have disabled the escape key, you cannot reuse it in combination with other keys. Instead, you could use another common key combination. Choose your combination of keys to quit the experiment, add a code component, and in the Every Frame tab:

keys = event.getKeys()
for key in keys:
if ‘ctrl’ in key and ‘z’ in key:
core.quit()

2 Likes