Recording multiple keypresses during audio
I am working on an experiment where the participant listens to audio files and needs to hit the spacebar every time the language or speaker changes. There should be many keypresses during each 40-60 second audio file, but the exact number will be different for each participant/audio file. I don't care about the duration of the keypress, but the number of keypresses and exact timing of each of them (relative to the beginning of the audio file) are important. I've looked through previous discussions asking similar questions to try to incorporate those suggestions, but this is my first time using OpenSesame and I am a beginner programmer, so I'm stuck and having trouble implementing what I've seen. Can anybody offer some suggestions on ways to do this?