What if you turn of your car still in drive?

Then your car won't let you pull the key out. . . Why do you want to do something like that?