Well, the transmission can't stall because it's a gearbox, and they don't do that...
The key can't be in the "off" position unless the gear selector is in park. You also can't restart the car unless it's in park (or neutral). Also, the key doesn't move by itself, something moved it if it was indeed in the off position.
Hatch Nation #29