@Override
	public void keyPressed(int key, char c) {
		if (key == Input.KEY_F1) {
			AppGameContainer gc = (AppGameContainer) container;
			try {
				gc.setDisplayMode(modesfs[i].getWidth(),
						modesfs[i].getHeight(), fullScreen);
				mainClass.xMax = modesfs[i].getWidth();
				mainClass.yMax = modesfs[i].getHeight();
				i++;
				if (i == 3) {
					i = 0;
				}
				game.init(container);
			} catch (SlickException e) {
				e.printStackTrace();
			}
		}
		if (key == Input.KEY_F2) {
			DisplayMode[] modes;
			try {
				modes = Display.getAvailableDisplayModes();

				for (int i = 0; i < modes.length; i++) {
					System.out.println(modes[i]);
				}
			} catch (LWJGLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		}
	}