This can be done in any level and is cumulative across all play.
Flipping in air is done by pressing the jump button(s) while in air. The robot will do a little flip and your flip count will increase by 1.
Simply mash the jump button until this unlocks. Easy!