The first keyboards were typewriters, which were used to type out words like typing machines. These machines appeared around the 1870s, and they look like the one below.

Only later, when computers were invented, these typewriters became an input method for the computers. Then, they became keyboards.

Razer's keyboard made for Xbox One
Blackwidow tournament edition V2