A keyboard operates a computer in a similar way to a typewriter. A computer keyboard includes extra keys that provide special functions.