Left and Right arrows control the target while the "leg" moves to compensate (it has limited movement, otherwise it breaks)
I made it myself with some inspiration from other IK (inverse kinematics) techniques