In computing, a computer keyboard is a typewriter-style device which uses an arrangement of buttons or keys to act as mechanical levers or electronic switches. ... In normal usage, the keyboard is used as a text entry interface for typing text and numbers into a word processor, text editor or any other program.