How to stop 3D object from drifting?

My character is slowly but surely drifting even though I set all of it’s velocities to 0. This only happens when I run my code however. Can someone help?

Note: apparently I can only use one picture, so for reference, the movement is about 0.02 units/sec to the character’s left since it moves based on direction

here’s the piece of code that moves the player