Throw the hat from above the head to the foot with a reverse spin
Hold the hat at the back in an outside grip. Let go, and pull the fingers down and forwards so that the hat spins back towards you as it drops.
Flex the foot as much as possible for the catch.