Etymology
Today it means: A slot into which a precision attachment (a key) is fitted. Full definition →
From key + way.
Etymology from Wiktionary, CC BY-SA 4.0.