It's hard for anyone with a concept of 'center of gravity' and a natural instinct toward self-preservation to grasp, but the frantic hand-slapping motions (in the split second between 'handstanding' and 'falling') suggest that he was trying to hand-walk on the treadmill.
I imagine he rubbed a bunch of balloons on his head to get rid of all the static electricity first, thinking that would let his hair glide smoothly on the treadmill and he'd just move his hands really fast.
Because of the green tint, I'm going to assume that in addition to having the treadmill set to max, they also decided to do this in pitch black. Or in the Matrix.