The invention relates to a lock for keyboard keys (1) onto which there is pushed a cap (2) which is operated upon depression of a key tappet (6) and which has a cavity matched to the key configuration. It is necessary in keyboards to lock keys which are not required at a given instant. For this purpose, the invention provides for a U-shaped clip (3) whose two limbs are provided with an inwardly acting biasing and whose lateral height is slightly greater than the shoulder of the key tappet (6) to be inserted under tension into the cavity (4) of the cap (2). After the cap has been pressed onto the key and thereafter released, the limbs of the clip (3) engage between the upper rim (7) of the key and the internal base (8) of the cap. This produces a simple lock for keys not in use. The invention is particularly suitable for use in keyboards of data entry equipment. <IMAGE>