I've seen a psychology analysis of this "confuse the pedals" problem. It really has nothing to do with not knowing which pedal is which. People aren't that dumb. Well, most people.
If you put your foot on the gas by mistake (some people don't have as good a sense of where their extremities are, or maybe they're just slightly rotated in the seat), and the car starts moving, you're quite convinced your foot is on the correct (brake) pedal, because it ALWAYS is in your experience. So you start pushing what MUST be the brake pedal HARDER trying to stop the car, because you've had decades of experience that teaches you to push to stop. Of course that makes it worse, and within just a fraction of a second it's too late because you've already moved quite a distance. It takes well longer than that for your reptile brain to give way to your rational brain and realize "Oh, my foot is in the wrong place."
So the only real mistake is the initial foot placement. Everything else is very simple and normal human psychology and muscle memory.
The real problem is a control system design that puts two nearly identical controls (that do opposite things) right next to each other - and with the potential for serious bad things that result from such a mistake. Anyone with aircraft control system design or test experience will instantly tell you that's a really, really bad idea.
But we consider it perfectly normal, don't we?