Feedback without individual trials

I am working on setting up an experiment ​to see how accurate people are at identifying certain behaviors. To do this, they will watch a video of an animal behaving and ​when they see a behavior to be recorded, they will press a certain key. That is, the person will respond while the video is playing. At the end of the video, I want to provide feedback on how many behaviors they identified correctly. That is, I need to compare the keys they pressed and the times they pressed them, against the correct answers (what keys should have been pressed and at what time). Add all of the matches up, and provide this information (e.g., “you got 4 correct!”).

Has anyone done anything like this before, or seen examples of how this might work? Thank you!