You move after you finish a dream or when you awaken from one. You only are in SP when you are in the REM state. If you try not to move after awaking from a dream you can try to attempt a DEILD if you wanted to.