What do you do? At the time I didn't understand why these people didn't just put the car into neutral but I guess people freeze in emergencies. And after extensive and expensive testing, Toyota proved that there was no fault with their vehicles. Usually it's just the driver pressing their foot on both pedals simultaneously. I've done that myself though I figured it out a few seconds later.
But now there's a simple solution that federal safety regulators plan to require in all new cars and trucks: It's called a brake-throttle override system. All it does is cut the throttle as soon as the brake is pressed. So, whether it's a floor mat or your own foot pressing the accelerator while you're pushing on the brake, the accelerator will be disabled, allowing the car to come to a stop.
Best of all, the cost of making them mandatory would be close to zero since most vehicles already have the system. Toyota made these standard after the recalls and even retrofitted some earlier models. I guess it's cheaper to do this than continue to fight off lawsuits from bad drivers.
The NY Times has a full article about the system.