Only accepting specific keys to end video
I'm looking to have a video end when one of two keys is pressed, but not any other, and then I want different things to happen depending on which key was pressed. Is there a way to do this? At the moment I can only see "keypress" as a video ending option, without any parameter to specify which keys would be allowed. If this is possible, what code would tell me which key was pressed (so that I can then specify different results in an inline script)?