Etymology
Today it means: The part of a key (on a keyboard) that is pressed by the user, as opposed to any electromechanical unit underneath. Full definition →
From key + cap.
Etymology from Wiktionary, CC BY-SA 4.0.