The keyboards are embedded with electronic circuits that are responsible for producing noise when a signal is generated. The generation of the signal is attributed to the keys located on top of the keyboard. When you press a key, it leads to the generation of a signal which in turn produces a sound. Each key generates a different signal, and thus, varying sounds are produced when different keys are pressed.