how to do IK on legs?

Hello,

I'm having trouble putting IK on my characters legs. When i move my character up on the z axis, and then try to move him down, the ankle gets stuck in the air, and the rest of my character is the only thing that moves down. HELP!!!!!!!