Photo Gallery "thumbnails" question

First of all, this is a great site, and I’m really appreciative to everyone who is out there helping new users like myself.

As for my question, I used your “photo gallery with thumbnails” tutorial, and it came out great. What I wanted to know is if anyone knows how, instead of the thumbnails scrolling side to side based on mouse position, if I can get them to scroll left or right based on when someone pushes and holds down a left or right button. I’m sure it’s probably a very easy solution; I just can’t figure it out.

Thanks for your help!

**The following is the bit of code I’m referring to, and want to change:
[COLOR=Orange]
[COLOR=Teal]// thumbnail code!
this.createEmptyMovieClip(“tscroller”, 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {

if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {

if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {

thumbnail_mc._x -= scroll_speed;

} else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {

thumbnail_mc._x += scroll_speed;

}

} else {

delete tscroller.onEnterFrame;

}

};[/COLOR][/COLOR]