Getting in and out of a car

I’m having trouble getting a stick figure to get into a car when you hit space and out when you hit space again. Please help.

Thanks,
Chris