Anyone ever rigged up a 2 step switch to run off your brake pedal?

Tried a prox switch that opened up a relay years ago it worked well.