Wasi Mohammed Abdullah has created this great virtual piano. It has 88 keys with keyboard and mouse support, wrapped up in a nice graphical interface. Even better, it is open source, so you can learn how it has been done.
Ting Ting
An open source 88 key piano with mouse and keyboard support.