Creating a counter or visual feedback in response to key press

Hi,

My experiment consists of a map with a path and participants should press keys corresponding to each direction to turn along the path within that routine. I would like to create a visual feedback in response to the key press and I was wondering how I can do that?

I was thinking of either adding a counter showing the number of keys pressed or a text of “!” popping up every time a key is pressed, but which ever way is easier to implement is fine. I’m new to coding and PsychoPy, so I’m not sure how to code this aspect in.

Thank you!

Check the demo “keyNameFinder” in Builder for an example of how to show feedback of what button is pressed - you should be able to implement something similar using a Text or Textbox component :slight_smile: