Keyboard
From Computer History Wiki
A keyboard is a device used for sending characters to a computer, when the keys are struck by a user. Originally, almost all keyboards were part of terminals, but now it is common for them to be independent devices.
The older ones typically sent characters codes in ASCII, but now they usually send scan codes, which allow the operating system to know exactly which keys have been struct, including keys like 'Shift', etc.