Its a switch. just follow the metal that the pedal is mounted to and you'll find it. There's often two switches- one for the brake lights and one for the cruise. Isn't your car still under warranty?