You can to some extent do it without that much motion as well. Basically, you're "falling" to one side and getting momentum, and then you "save" the fall by twisting back getting the bike under you, and that instead puts the momentum forward.
I would like to add that you are not just "turning the handlebars" - you need to apply a lot of force to get the forward action to take place.
Pumping is fun skill, easy to get the hang of with a little dedicated practice, and a prerequisite for BMX racing or any advanced MTB riding. Its also extremely inefficient for forward motion. You don't see any TDF guys using pump motion unless they're saving a crash.
It was 40 years ago, what I remember it works but not very good. As they say lower down, you need more movement to actually get any sort of speed forward. It was just something I liked doing while waiting for someone to show up.
You can to some extent do it without that much motion as well. Basically, you're "falling" to one side and getting momentum, and then you "save" the fall by twisting back getting the bike under you, and that instead puts the momentum forward.