Video annotation software

Hello everyone,
For my PhD, I’m building an accelerometer data decoder using covnets. But first I need to annotate videos of animal behaviour, and I’d like to have some software or code (R, python or julia) that allows me te predefine the classes of behaviours to annotate, assign them to numbers on my keyboard, and then just press those buttons as I watch the video to annotate it. And ideally that would yield a csv with the times of when each behaviour happened. There’s nothing on google that I could find that fits this description.

Any suggestiones are greatly appreciated!