A Newspaper Man, a Piano, and 28 Alphabetical Keys
In 1867, Christopher Latham Sholes — a Milwaukee newspaper editor, politician, and serial tinkerer — filed a patent for a "writing machine" that looked more like a piano than anything you'd recognize as a keyboard today. It had two rows of keys, arranged alphabetically, because why wouldn't you? That's the obvious layout. A goes first. Z goes last. Simple.
It wasn't simple for long. By 1868, Sholes had reversed the second half of the alphabet (Z-N instead of N-Z). By 1870, he'd rearranged everything into four rows, with vowels on the second row and consonants below. By 1872, the layout had mutated into something called QWE.TY — yes, with a period where the R sits today. Each change was driven by testing with actual users and feedback from James Densmore, his impatient financial backer who kept pushing for improvements.
When Sholes pitched the typewriter to gun manufacturer E. Remington & Sons in 1873, the QWERTY layout was nearly finalized. The Sholes & Glidden typewriter went on sale in 1874 for $125 — about $3,000 in today's money. About 5,000 units sold before Remington launched the landmark Remington No. 2 in 1878, the first typewriter with both upper and lower case letters via a shift key. That same year, U.S. Patent 207,559 formally documented the QWERTY arrangement.
Here's the detail that should give you pause: Sholes himself wasn't satisfied. He spent the rest of his life inventing alternative layouts, filing a patent for an entirely different XPMCH keyboard in 1889, a year before he died. The man who created QWERTY didn't think it was the best answer. He just ran out of time to find a better one.