Keyaboard attribute for 'isPressedIn'

Hi!
What is the attribute for Keyboard?

if response.isPressedIn(d) and required_response == 'd':

AttributeError: ‘Keyboard’ object has no attribute ‘isPressedIn’

Do you want

if 'd' in response.keys and  required_response == 'd':

Hello Marcello,

the online-documentation gives you the relevant information. See here for instance for information about the keyboard-class:

https://psychopy.org/api/hardware/keyboard.html#psychopy.hardware.keyboard.Keyboard

Best wishes Jens