strafe not working, help please

i just noticed a weird thing, if i move the camera with the mouse on left or right the pawn begin to strafe, its not strafing right because the left strafe will show when i move to the right and vice versa, but why the direction value is receive from the camera rotate and not from the keys ?