Take a look in the graph editor > Curves > Post infinity.. if you dont want it to loop forever, just copy and paste keyframes..