Are the lights on your keyboard still on when the computer is in sleep mode? If not, the USB port for the keyboard may be turned off, and of course if the keyboard isn't working then you can't use it to wake up the computer.
That may be something you can configure in the BIOS settings.