Block one key once response is made

Allowed keys can’t be set every repeat online.

Here is a very simple demo which defines remove in Before Experiment

Then:

Begin Experiment

allowedKeys = ['up','down','left','right']

Each Frame

if key_resp.keys in allowedKeys:
    continueRoutine = False

End Routine

allowedKeys.remove(key_resp.keys)

allowed-keys.psyexp (16.8 KB)