Help needed with simple animation

Hi, can someone help me out with the button script for this simple animation?

The functionality I’m after:

  • play button: click once to start animation. Once it’s played through I’d like the car to stop on the last frame so we can see where it’s ended up.
  • pause button: click to pause animation (play button will resume animation)
  • forward button: hold down to fastforward animation, release to pause on current frame, prevent from looping back to start after reaching final frame.
  • back button: hold down to rewind animation, release to pause on current frame

As you can see I’m sort of half way there but struggling with the rest.