Getting key that ended video
I'm hoping to have a video end on a keypress, but for the behaviour of the experiment to then differ depending on which key was pressed. Is there a function that can be called in an inline script that returns the last key pressed? I can create my own keypress event, but then that would require two keypresses (one to end the video and the next to determine the subsequent behaviour). I'd like to do it with just one keypress.\
Thanks (and thanks Sebastiaan for the great software).