The invention discloses a key switch which comprises a base. Four metal pins are arranged on the base, springs are arranged in the base, push shafts sleeve the springs, contact pieces are arranged on the push shafts, and the four metal pins on the base are respectively arranged at four corners and are symmetrically distributed. The key switch has the advantages that the four pins are symmetrical with one another, accordingly, directions do not need to be identified when the key switch is used and mounted, and the work efficiency can be improved; the key switch is combined with actual requirements, an energization principle is simplified, accordingly, error frequencies due to circuit tap position switching can be reduced, and the key switch is high in practicality; the base is additionally provided with grooved structures, and accordingly 'shoot-through' potential hazards between terminals can be fundamentally completely eliminated.