Two correct key responses in builder

I tried added a simple array to a keyboard component, but that didn’t work.

So, I recommend using some simple code instead.

Put the following in End Routine

if 'y' in key_resp.keys or 'n' in key_resp.keys:
    thisExp.addData('Score',1)
else:
    thisExp.addData('Score',0)

Replace ‘y’ and ‘n’ with your two answer column names (without dollar signs).