Keyboard and Mouse freeze after deep sleep (Mountain Lion)
I had the same issue on my Macbook Air and Mountain Lion.

The quickest way to solve this is to disable the login screen or the "ask for password" setting.

If you're worried about privacy, do the following:


Reset PRAM
Reset SMC


If it still doesn't work, disable deep sleep mode (hibernate) by doing this:

sudo pmset -a hibernatemode 0


Note that doing the above will only put your computer on battery sleep and this will affect battery life when you're not using your mac.