a keyboard contains many mechanical switches or push-buttons called "keys". when one of these are pushed, an electrical circuit is closed, and the keyboard sends a signal to the computer that tells it what letter, number or symbol it would like to be shown on the screen. the computer then shows the character on the screen, usually at the place where the flashing text cursor is.