Auto slide with key press as2

please help me i need to create auto slide show and control it within left and right key on my keyboard with as2