Assigning function keys for response

OS: Win 10
PsychoPy version: v2021.2.3
Standard Standalone? : Yes
What are you trying to achieve?: I need to take every response (from textbox and slider) using function keys i.e., ‘F1’, ‘F2’, etc.

Further, if there is an option where whenever a participant makes any response, either through textbox, slider, or mouse, it automatically clicks the ‘F1’ in addition to its specific response, that will be more feasible for me. What I really want to achieve is that I am using EEG with this experiment. Since I can’t synchronize the timing of experimental events with that system, I have an option to register an event in EEG every time the participant press ‘F1’ or other function keys only. I hope you are getting what I am trying to say.

Rather than register through an F1 keypress, is there a way to directly send a signal for the event via e.g. a :parallel_out: Parallel Out component?

There is an option of parallel port but I don’t have the required cable. That’s why I asked for any other option that automatically registers the function key while pressing any key on the keyboard, or responds on the slider, etc. I thought it might be possible by making some changes in python programming, or by any other means.