I did this without a capacitor, I had to put a Zener diode and reverse signal diode to clamp the voltage on the gate to protect the FET.
It was on a foot switch and without the protection the FETs would blow after about 9 hours enthusiastica stamping at a show.