Next image using Arrow Keys on ImageSlider?

Hi. I have a WOW Image Slider and would like to change the picture showed by using the arrow keys, and I would also like to change to the next picture by clicking on the current one, how to proceed this? The scripts I use for both the Arrow keys and Image slider can be seen below, what should I replace "alert" with so the script can understand that I want to change the picture to the next?

\$(document).keydown(function(e){

var keyCode = e.keyCode || e.which;

if (keyCode == 38)
{
alert( "Up arrow key hit." );
return false;
}

});

The ImageSlider Java Script: