When was the first keyboard invented?

The typewriter keyboard was invented with the typewriter in 1868 by Americans Christopher Latham Sholes, Frank Haven Hall, Carlos Glidden and Samuel W. Soule in Milwaukee, Wisconsin. This eventually became the computer keyboard by way of the teletype keyboard and keypunch machines.

The musical keyboard was invented as part of the harpsichord, which was probably invented in the Middle Ages. No one knows who the inventor might have been. The keyboard was adopted by the piano (also called pianoforte or harpsichord pianoforte, meaning harpsichord with soft and loud) and from there was adopted for other musical applications during the 20th century