In this applet, the hand is chosen as the (noninertial) frame of observation. When the stick tends to fall to the front, the hand should accelerate forward in order to give a backward inertial force on the stick to stop its rotation, and vice versa.
Your goal is to keep the stick not falling down as long as possible.