That's easier said than done. The peddle is a simple foot switch, if I were to try to make it operate a pot I'd need all sorts of stuff to modify it. Besides if I could modify it I wouldn't really need the PWM anyway as the power could be fed it gradually.The pot controls the PWM duty-cycle which has the effect of varying the output voltage.
If you connect the pot to a foot pedal, you can have an accelerator.
If I wire it in after the on/off (peddle) and set the pot to max does will gradually increase to max voltage or deliver an instant 12v ?