I wouldn't suggest that anyone else would be as silly as I, but since I keep the remote for my truck separate from the ignition key, I have on occasion had the same type of thing happen. In my case sitting down in the driver's seat applied enough pressure to lock the doors. The first couple of times it was quite a concern but now I know what to check first.
Henry and Shirley Utz
2007 Monaco Knight PDQ w/ Jeep Wrangler Toad