Hi,
Sorry for the delay in responding.
You could create a Code component. In the Begin Experiment box, put something like:
keyTone = sound.Sound(u'A', secs=0.5) # a brief sound that will play when needed.
Then in the Each Frame box, put something like:
if t < 1.3:
keyPress = event.getKeys(keyList = ['x', 'z'], timeStamped = True) # check for a key
if len(keyPress) > 0: # if there was one, then
keyTone.play() # play the sound
thisExp.addData('response', keyPress) # store the data
This is untested pseudo code and could/should be improved to separate out the keys and the reaction time, but it might get things started?
As mentioned, the sound and keyboard components should be deleted, as this code is starting to handle their roles.
Regards,
Michael