Many friends of mine including me have gotten up in the middle of the night and eaten, or called or texted someone they knew then the next day really not knowing if it was a dream or they really did it.

 
Many call this sleepwalking. I have had friends who have taken a sleep aid to fall asleep and wound up eating an entire cake. One of my friends called an ex, asked him to get back with her, and did not even remember calling him.
I had taken the sleep aid zolpidem before and if you do not fall asleep right away sometimes you will just get up and eat.
 
I remember listening to a 911 call from a person who called 911 and told the 911 operator he had just been in a plane crash. He was actually still in his house but thought he was on a plane. Therefore, I would love to hear your sleepwalking stories.