I'm pretty sure it's impossible to spend your life in a lucid dream. However, I suppose you could return to the same setting and "continue the story" in future lds.

As for your question, all you have to do to wake up in a dream is to lie down and close your eyes. When you open them, you should be awake.