My 1997 troy-bilt mower quits running when I disengage the break and/or engage the mower.

I've been told it was a safety switch.

Any tips..