Make a clipping feature that allow user to record their screen (you would need to specify the length of the clip before starting the recording)
And when you press a key it the save the last few seconds (depending on the length you previously set)
And if you have time you could add a feature that also save the player camera position rotation and fov changes over time in a .ma / .abc file (idk which one is the best for this type of use).