Scene video recording

Hello everyone,

I want to record a video of my scene when I press certain key and then I want to get this video stored in my computer. I want the recording to be in the play mode. Do you have any idea about this if it is possible ?