Keep rotating grating until key is released

OS : Windows 7
PsychoPy version : v1.90.2
Standard Standalone? (y/n) yes
What are you trying to achieve?:
I’m currently working on a grating rotation task. Users should be able to rotate the grating cw or ccw by pressing the right and left key. However, I was wondering how to adjust the orientation of the grating continuously while a key is held down and stop the adjustment only when the key is released. Right now I can only rotate the grating by one degree by pressing and releasing a key repeatedly.

Any suggestions would be appreciated!

Indeed, the current PsychoPy keyboard component in Builder doesn’t cater for this. You would need to add a code component, using the alternative ioHub keyboard monitoring, which does allow you to monitor for key down and up events separately.