how do I move the 1st person controller by dragging the mouse

How do I move the 1st person controller by dragging the mouse instead of the arrow keys?
Does somebody have an example of a script or is this a project setting? thanx

Welcome to the site. In the future, don’t forget to use the search function to see if there has been a similar question asked in the past. In this case, you’re in luck : ).