Press the keys AFTER you press the green flag!
I admit, I'm inspired by howto52. His project is here: http://scratch.mit.edu/projects/11697091/ (Gotta give credit where it's due!) I decided to make my own piano, so here it is!