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.