If you have to replace the switch, it's probably a push-in style held in place by a metal sleeve, just pull the switch out of the sleeve and push the new switch in far enough that the pin on the end of the switch makes good contact with the pedal arm so the brake lights will not stay on all the time ...