Etymology
Today it means: A person in charge of a key or keys. Full definition →
From key + master.
Etymology from Wiktionary, CC BY-SA 4.0.