To play a note, press the arrow keys (up, down, left, right), space bar, and W, A, S. To switch an instrument, press the letter D.
Thanks to 5c2872 for the lovely piano project :) I made a few changes (new image and different keys) to the project. Enjoy it!