Luckily I can't do that with my car very easily. But once when my neice was about 8 months old, I locked her in the car (the car was not running). It's a funny story now that she drives the same truck I locked her in.