Start recording with a footswitch

Is it possible to do so ?