Use the right and left arrow keys to make the batman walk forward and backwards respectively. To change the direction of the batman, you will have to let him rebound off the edge.
This is a basic interactive animation of Batman walking. It was a bit tricky to get the batman walking naturally but got it eventually. The first trick was to align the successive costumes using the foot on the ground. The second trick was to use a bit of script (check it out) to deal with the last to first costume transition glitch. (To see what I mean, replace the entire if-else block with just the next-costume command and run the animation). The sprites were taken from http://www.spriters-resource.com/arcade/batman/sheet/31098/