Did the same thing when I had my focus. Luckily I had a spare in my house and I was on my driveway at the time.
It was keyless start though, and I once started the car up, then went back indoors as I had forgot something, put the keys down then got back in the ca, drove 5 miles away and turned the car off.
Bugger.