How Do I Detect If A Button On The Keyboard Is Being Pressed?

Don’t know if you’ve figured out a solution, but there’s a way to bypass PsychoPy’s handling of keyboard inputs altogether that should give you what you need. You can basically just listen to the pyglet window directly. See here: Tracking Key release