Move forward and backward through slides using Mouse clicks on Left and Right arrows

Keyboards can be set to register new presses only but mouse detection is done every frame. The way I normally deal with this is to add a minimum RT, to give time for the mouse button to be unpressed. e.g.

if mouse.isPressedIn(rightArrow) and t > .5:
     slideN +=1

The more sophisticated route would be to have a flag. The code would look something like:

if mouse.isPressedIn(rightArrow) and mouseDown == False:
     slideN +=1
     mouseDown = True
elif mouse.getPressed()[0] == False:
     mouseDown = False