A keyboard is a device with a set of buttons or keys that act like a mechanical lever or an electronic switch. The keyboard is the main input device of the computer. The keys are printed on the keys on the keyboard. To create a symbol, you have to press or hold down one or more keys. The keyboard is still the most used and versatile input device since the invention of the mouse , touchscreen , pen , and voice recognition.