How to record participant response?

I’m not exactly sure if I’m using the textBox component right, I’m new to PsychoPy. I have a Textbox in the participant response routine that I thought was set to display whatever I inputted into the code (I titled it displayText and set the text as ‘’.join($key_Resp2.keys)), but it doesn’t seem to be working.