My present theory is that dreaming is an active, tho unconscious, deed. So step 1 is to make the unconscious, conscious. And then step 2 is to stop dreaming.
More mundane examples : Turn off the movie. Quit the game. Close the book. Alarm clock goes off.
But that’s just me. I want to hear your opinions on this subject.
:wq
:q!
My dreams are weird, that shit can stay there
ZZ
Edit: this is assuming you want to save changes made in the dream