A few years ago a developer did something similar Lauren. Unfortunately, I cannot find the Forum link.
He used a Canvas and I think he used hot spots to hit the appropriate keys. Here is an octave

to get you started.
I think the following will help set up the hot spots

using the above image. Experiment, make a small Project with just the key board and see if you can male sense of this ... certainly more code is needed. Additional code is needed to provide a response when the indexX and indexY are set to certain values. Something like if indexX = xxxx and indexY = yyyy then the note is 'G: else if ... then it is 'C'.
When you get something working , perhaps post your example aia here in the Forum Lauren?
Regards,
Steve