Did you go really slow though? I couldn't get that to work for me lol :)
I was just pressing the forward key but not long, maybe for a second and stop, and press it again, and stop...etc.
I guess your script is based on the time you press the key, not the distance you do with your car ?
It's indeed slower than people doing it the good way, but it's an easy way to complete levels