The FirstPersonController prefab in Standard Assets keeps on moving for about half a second after the key is released, I have tried to look through the C# script but I couldn’t find the cause. I want the player to stop moving as soon as you let go of the move key.
Thanks in advance.
I found what the problem was,
In the input settings (Edit->Project Settings->Input) you need to go into Axis and then change the gravity of Horizontal and Vertical to something like 30 and then the player will start and stop immediately with key presses.