Sleep paraylsis. It's a chemical thing. The part of your brain that recognizes conciousness and being awake is functioning, but the chemicals tell your body that you're awake aren't released. So you can't move, or have limited, strained movements. The part of your brain which controls your "dreaming" is also working at some degree. So you may see things, or experience things like they are "real".