You're in mouse-look mode. You got into it by somehow pressing the numeric keypad's asterisk ("*") key. Press it again to leave mouse-look mode.