Balance the hat on your head, then drop it back to your heel
First do an Upside Down and then raise your leg up, as described on the Heel Catch page.
Flick the head back so it drops to the heel.
Don't worry if you find this hard, it will take a lot of practice before it works consistently.