added basic code to show the next picture when the key is pressed.