You press the same button you used to get into the car.

On the Wii, you press "A" to get into the car, and "A" when you want to get out. If the car is in motion, it will bring it to a halt, and you will get out.