Free Association Task, show previously generated word

Hi @Aflynn

You can find a nice guide here: Writen response

I just copied the code from that post and matched it to your variable names:

# Begin Experiment
import string
allLetters = list(string.ascii_lowercase)

#Begin Routine Tab
screen_text = ''

# Each Frame Tab
key_response = event.getKeys()
if 'escape' in key_response:
    core.quit()  # So you can quit
else:
    if key_response:
        if key_response[0] == 'backspace':
            screen_text = screen_text[:-1]  # Deletes backspace
        elif key_response[0] in allLetters:
            screen_text+=key_response[0]  # Adds character to text if in alphabet.
        elif key_response[0] == 'return':
            continueRoutine = False

#End Routine
thisExp.addData ("assn_response", screen_text)