How to require two key responses

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10):
PsychoPy version (v2022.2.5):
What are you trying to achieve?:
I am trying to have a task continue until two keys are pressed rather than ending on a single key press.
What did you try to make it work?:
I have followed the code described here: Ending Trial after Two Key Responses

What specifically went wrong when you tried that?:
The trial is still ending after one key press. It will accept all keys but proceeds after one key rather than waiting for the second.

Please could you show your code?

Of course…apologies that would have made much more sense! This is what I have:

Is your keyboard component set to store all keys and with no tick in the box to end the routine?

Thank you! You’re a star! I had it set to store all keys but I still had the box ticked to end the routine. I unticked that and it is now working :grinning:

1 Like