A keyboard produces sound digitally or acoustically, depending on the type of instrument. Digital keyboards use electronic circuits to produce sound, while acoustic keyboards (such as the piano) use hammers and strings.