No key response as correct response

OS (e.g. Win10): Win11 Pro
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: In my go/no-go experiment, not pressing a button is a valid decision in some conditions. I had defined the allowed key for this case as ‘None’. The experiment goes on correctly, but the saving of some information is done for all key presses (‘right’, 'left, etc.) except for the case of ‘None’, although in the Keyboard component, I have chosen to store the data. The saving of the data seems to be dependent on any key press, right?
elif Key_Resp.keys == 'None': seems not to work.

It looks like you’re comparing it to the word 'None' - if no key has been pressed then I believe KeyResp.keys would be an empty list ([])