The piano is a keyboard instrument because it produces sound via a keyboard—a set of black and white keys pressed by fingers. Each key triggers a hammer to strike a string, creating vibration. Pitch depends on string length/tension; timbre on string material and soundboard shape.
Keyboard family includes harpsichord, clavichord, organ.