Tastiera Piano Widget lets you use your computer as a piano. It gives a range of 3 octaves (1½ on either side of middle C).
It was originally made for singers, but should also be useful for composers, musicians, etc.
The widget adapts itself to any keyboard layout.
This is shareware with a 30-day trial period.