To identify the key of a song on piano, you need to listen to the melody and chords and determine which notes and chords sound like the tonic, or home note. Once you have identified the tonic note, you can determine the key of the song by looking at the key signature or the chords used in the song.