If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
If you can tickle the keys, you'll tickle the fancy of the beauty at the bar. Hit the key shown on the note as it passes between the bars. Fill the heart by performing well. Your heart needs to be at least half full to be asked to play another song.
Use the keyboard to type the letters.