Anyway, what happens there is you usually lock all doors before closing them. Then when you close them, if the key is inside, oops.
This is mitigated in slightly moderner cars by the fact that driver-side doors don't lock when they're open.
So I guess we had this beautiful period of the last 15 or 20 years where we locked our cars by pressing a button on the key. Makes it impossible to lock your keys into the car.
I wonder if we're going to decide that was better than keyless before keyless becomes widespread.