A typewriter is a mechanical or electronic device with keys that, when pressed, cause characters to be printed on paper. Typewriters were widely used before the advent of computers and word processors.