I don't remember what it's specifically called but what you've described sounds a lot like a sleep disorder where you wake up and are still paralized.
In general when a person reaches REM (Rapid Eye Movement) sleep your body keeps your limbs from moving which keeps you from thrashing around during dreams. It's a form of paralasis, the sleep disorder i'm thinking of occurs when a person wakes up and are aware but their body is still paralized. I think the disorder may be called Sleep paralysis, but i'm not sure. I have a sleep disorder, so in researching mine i've seen info on many others. Just try looking up "Sleep disorder" in a search engine and you'll find many sites that will give you information i'm sure.
I'm not afraid of the Dark, I'm afraid of what's IN the Dark. ~Anonymous~
Ball Python, Leopard Geckos, Bearded Dragon, Crested Geckos, Corn snakes a Dumeril's Boa and African Dwarf Frogs so far.