WASD Controlling Legs, Mouse controlling waist

I am trying to find out how to make the mouse control the waist like in this video.

I am trying to get a similar effect.
Thank you for any answers.