The piano belongs to the keyboard family because it produces sound by pressing keys that trigger hammers to strike strings. This key-activated mechanism is shared by the organ, harpsichord, and synthesizer.
These make it the most versatile keyboard instrument, used across classical, jazz, and pop.