Hello.
Here is an example Visual analog scale: press and hold key that might help. https://discourse.psychopy.org/uploads/short-url/vhjN53gpBka8L0xw1GGZsYf0py.psyexp. There is also an example in the demo experiments that works in a similar way.
Best wishes, Jens