Computer is an electronic device but typewriter is an mechanical device. Keyboard is an input device. while type writer is a mechanical device The typing is done on a paper while using a typewriter. A keyboard is usually used with a desktop.