About greeble experiment

Hi I’m a new for the psychopy.

About my experiment I almost done but for one section:The computer screen presents the name for 1 second each time it is recognized, followed by a brief interruption of 0.2 seconds, and then presents “Greebles”. If the participant believes that “Greebles” matches the name, they press the Y key; if they believe it does not match, they press the N key; if they have never learned before, they press the space bar. If the answer is incorrect, the computer will beep to remind them.

Does anyone have Idea of code for this? Cuz I’ve been tried a couple of times but still not working.

You could have a feedback routine which has a beep with volume $(1-key_resp.corr)

Thanks for your reply!