The modern keyboard is a descendant of the typewriter, which was invented in 1868. The typewriter used a keyboard with letters arranged in alphabetical order. The modern keyboard layout is based on the typewriter layout, with some modifications.