W to accelerate S to decelerate/reverse A and D to turn I would highly suggest using: https://turbowarp.org/752895239 This can get very slow, so use a high res value (7 or more has worked best when I've been testing this)
All my code. The track is from one of @griffpatch's projects. The blocky shape of the track is due to coordinate rounding, so I can't fix it. Uses the raycasting technique from my project "Lit 3D Plane" : https://scratch.mit.edu/projects/739974804/