<trial t>
/ validresponse = (50,57)
/ trialduration = 2500
/ branch = [
if(trial.t.response == 50) trial.b
]
</trial>
Say the spacebar (57) is pressed at 500ms. I'm looking for a way that the branch logic could be executed if the "M" (50) key is pressed.
What I'm ultimately trying to achieve is that at any time during the experiment if the "M" key is pressed something should happen but generally want to maintain a trial duration of 2500ms.
I'll probably change the trialduration to a timeout and branch to another trial for 2000ms but just wondering if there is a simpler way as looking to reduce the complexity of the script.