It's called Lucid Dreaming and there are places online that can teach you how to train yourself to do it (supposedly) if you search for it. I've never tried myself, it always seemed like too much work just to sleep, and I tend to have a lot of interruptions in my sleep, so by the time I'd be...