The piano is considered to be part of the keyboards family of instruments. However, it is also classified as a string instrument because sound is produced by striking strings with hammers. Therefore, the most comprehensive answer is both strings and keyboards.
If the choice "both strings and keyboards" is not available, then "keyboards" would be the most correct option from the given responses.