| Reference | Downloads | Github

Mouse response for displayed stimuli using code

A stimuli appears on the screen. The participant has to respond to the stimuli by pressing a mouse key. The stimuli appears till the response is given by participant. I wish to know the key press and reaction time. I have been trying but the mouse key press is skipped and the experiment ends. Can anyone provide code/algorithm to implement the required issue?