Christopher Sholes invented the first practical typewriter in the 1860s and patented it in 1868. His design included the QWERTY keyboard layout, which was specifically designed to prevent jamming by separating commonly used letter pairs. This layout became the industry standard and is still used today.