Matt I wil give you some advice go to your program greenfoot click on help, and click than on Greenfoot class documantion, and than you go to a help site for codes.
If you are there click mouseinfo and you can find the code you need
or copy this url C:\doc\API\index.html