How to make TPS character turn using the mouse

I am working on a TPS game and I am trying to use the mouse to aim. I would like my character to move with the mouse (i.e. move the mouse right and the character turns right). As I have it right now, my character can turn with the mouse while the player moves forward. However, when I turn the mouse while standing still, the character does not move.