Animate > Set Driven Key > Go to Previous and Go to Next
 
 
 

See Go to Previous and Go to Next.