Patent ID: 8654080

Claim:
A keyboard for an electronic device, comprising: a main body comprising a plurality of keys; a test indicator positioned on an outside surface of the main body, the test indicator comprising an anode and a cathode; and an interface electrically connected to both the main body and the test indicator; the interface comprising a first idle pin and a second idle pin; wherein the main body is electrically connected to a main board of the electronic device through the interface, such that the electronic device can be operated using the plurality of keys of the main body, and the anode and the cathode of the test indicator are electrically connected to the main board through the first idle pin and the second idle pin, respectively; when a power supply of the electronic device works normally, the power supply provides a voltage to the first idle pin through the main board, and the test indicator is switched on by the voltage and emits light to indicate that the power supply works normally.