Player movement

how do i make it so that when my character strafes left from right, they do not lose speed.