If it stays on, follow the brake tubing from the master cylinder down to the switch and pull the wire off the switch. If the light goes out, you have a hydraulic problem. If it stays on----and that would be rare---------you have a wiring fault to ground in that circuit.