I need to modify the force end routine option. I want the routine to last a minimum of 2 seconds, but all participants will have 4 seconds to respond.
If they respond before 2 seconds, the trial should end at exactly 2 s. If they respond after 2 seconds, I want the trial to force end at the time that they respond. I’ve tried:
if len(theseKeys) <= 2:
continueRoutine = False
Right now, I have two keypress responses, one where that ends at two seconds, and another that immediately follows and allows for the force end routine. The problem is that I want the routine to end at 2s, if a response is given before the 2s period.