Fetching details from the dictionary...

key (on a piano, organ, etc.)
白い鍵と黒い鍵を順番に押した。
I pressed the white and black keys in order.
この鍵を強く押すときれいな音が出る。
Pressing this key firmly produces a nice sound.
子どもがピアノの鍵をでたらめに叩いて遊んでいる。
The child is playing by randomly hitting the piano keys.