Head orientation where camera is orientated

How could I set up so that the head of the character is looking where the camera is looking up to a limit of 40* up and down and 90* left and right.

I tried doing this on my own using a blend space with the head looking at different directions in each corner and I used controller rotation broken into yaw and pitch to drive the blend space. The problem that I ran into was that the controller rotation is relative to the world and not to my character.