Don't know what's happening, but my iMac has done this a few times as well. The mouse light would be on, but the iMac wouldn't wake up with a keyboard stroke, or event lightly clicking the power button (my power button is setup to sleep/wake).
Only way I have found is to press-hold the power button to force shutdown. Then I send an error report to Apple when prompted for it automatically.