My Player keeps moving even though input was not pressed

For some reason after i coded my character on a test the player keeps moving after i release it’s input button.

for example when i press W my player moves forward and keeps moving forward a while even after i release, then stops

any way to fix this?

your help is greatly appreciated

We can’t do anything for you if you don’t post the relevant code that you have written.