Is there a way to record key presses when the experimental window is out of focus?
More Information:
I am running an experiment in Unity, but I am using psychopy to run a script in the background to record eye tracking data. I also want the background script to log key presses. My script runs fine if I have the window in focus. However, if I minimize the window to focus on the Unity experiment, the key presses are no longer recorded. Does anyone have a suggestion on how to log key presses when the window is out of focus?
Thank you so much!