The invention discloses a non-contact keyboard switch. The non-contact keyboard switch comprises a base, a fixing seat, a sliding component, a magnet and a Hall switch, wherein the sliding component sleeves a mechanical shaft, an embedding groove allowing the magnet to be embedded is formed in a side plate, which is close to a movable contact piece, of the sliding component, protrusion parts are respectively arranged on two sides of the embedding groove, and the protrusion parts are matched with R-shaped springs arranged on the movable contact piece in a movable contact manner; two directional sliding rails oppositely arranged by using a first positioning column as a central axis are arranged on the sliding component, and the two directional sliding rails are matched with directional sliding grooves formed in the base in a sliding manner; the Hall switch is arranged on the base and positioned between the movable contact piece and the mechanical shaft, and lead-out feet of the Hall switch extend out the base. The non-contact keyboard switch disclosed by the invention has the advantages that the keyboard switch is not easy to age, the service life is greatly prolonged, the contact stability is better, the possibility of electrical shake is low, and the phenomenon that the normal operation of the keyboard switch is influenced as external impurities enter the keyboard switch is avoided.