Patent attributes
A key assembly (B) mounted on a circuit board (200) includes a frame (23), a keytop (24), a switch (21), and a light emitting component (22). The frame includes a protrusion (230) formed a front thereof. The keytop defines a slot (241) shaped to correspond to a shape of the protrusion. The protrusion is received in the slot without protruding from a surface of the keytop. The switch is for electrically connection to the circuit board. The light emitting component is disposed inside the frame and for electrically connection to the circuit board. An electronic device (A) utilizing the key assembly is also provided.