Added keyboard controls for selecting the displayed image