public void keyReleased(KeyEvent ev) {
			if(ev.getKeyCode() == KeyEvent.VK_LEFT) {
				if(index != 1)
					index--;
			}

			if(ev.getKeyCode() == KeyEvent.VK_RIGHT) {
				index++;
				index = index % 1325;
				if(index == 0)
					index++;
			}

			comic = getComic(index);
			frame.setTitle("XKCD - " + Integer.toString(index));
			title.setText(comic.getTitle());
			image.setIcon(new ImageIcon(comic.getImgFilename())); 
			frame.repaint();
		}