Possible to create forward/back buttons for animations?

Hi there, I see the “Play” and “Pause” buttons are default for the animation slider. Is there a way to create a “forward” and “back” set of buttons to step through that way? Thanks in advance. I’m working in R but figured someone had done this in native JS first if at all.