Toggle Stop and Record with a Key Command

Hi,

I am trying to get a single Key (for my foot pedal) to start recording and stop the transport bar. When I use Record (Shortcut V), it records but then when I press V again, it stops recording however, the project cursor moves forward playing.

I guess what I need is having a toggle to record and stop with the same key

I know I can use Stop but I was wondering if there was a workaround or a way to achieve this.

Any help would be greatly appreciated.