Responding to a previous stimulus while a new stimulus is on the screen

I am designing a Rapid Visual Information Processing task in which numbers are presented to participants at a rate of one number per 600 ms for 12 minutes. Participants are instructed to respond when 3 consecutive odd or 3 consecutive even numbers are presented on a screen. Responses are deemed correct if they occur up to 1500 ms following the presentation of the target sequences. This means that participants may be responding appropriately to a target sequence at a point in which the target sequence is no longer being presented on the screen.

How can I code correct responses for this experiment?

Thanks for your help,

What exactly do you want to happen when the participant responds to the 3 consecutive numbers?

I think I figured out the answer for this. Thanks for your willingness to help.