Thanks!
The AI sets a target point ahead on the road, which it tries to head towards. However if the player input is wrong, the target point will instead be set a bit off the road.
I see, very clever and affordable to implement