A good 2D view

How would I go about disabling the player from moving Forward/Backward and disabling the mouse from moving Left/Right?