The recent keyword will do what you are looking for. Each time you navigate to a card it is added to the 'recent' list, so…
go to the recent card
…will step back through the recently visited cards, much like the back button on a browser.
This can be shortened to…
go recent
Then to move forward again through the 'recent' list, use…
go forward
Note that both forward and recent cycle through the recent list, so if the list only contains 1, 2 & 3 then when you go forward and reach card 3, the next forward command will take you to 1.