The trick is you got to realize that you're dreaming in the first place. You gotta be able to recognize it, you gotta ask yourself: hey man, is this a dream?
Seems like everyone sleepwalk into their wake state and wakewalk into their dreams.