I did not think this would work honestly-
press R to record, press S to stop recording, once you've recorded press the flag.