I have accidentally managed to train myself to get up, cross the room, turn my alarm off and go back to sleep... all without any conscious thought. It's not very helpful.
In college, I once climbed out of my loft, walked over to my desk, turned off my alarm, climbed back into bed, went back to sleep, and didn't remember doing so when I woke up.