I’m trying to create a Stroop task whereby the word stimuli (red, green, blue, yellow) appear on the screen, and one must correctly identify whether the word stimuli are congruent with the colour presented (the word red presented in red font) or incongruent (the word red presented in yellow font).
For the key responses I would like the left arrow key to signify “CONGRUENT” and the right arrow key to signify “INCONGRUENT”.
I know it is quite easy to specify left and right arrow keys using the Builder and an excel sheet, but I would like to randomize the color-word stimuli presented, thus it would seem, according to YouTube tutorials, that manually coding would be the solution.
My question is: How do I set the correct key response to be the left arrow key when pressed with congruent stimuli (and incorrect when pressed to incongruent stimuli), and vice-versa with the right arrow key?
Thanks