public static void getControlSelect(Global global, GameContainer container){
		
		if (global.getCurrent().getMenu().getName().equals("controlselect")){
			Input input = container.getInput();
			
			for (int i=0; i<Keyboard.KEYBOARD_SIZE; i++){
				if (input.isKeyDown(i) && !input.isKeyDown(Input.KEY_LMENU)){
					if (global.getCurrent().getMenu().getMenuItemByName("txt_key").getText().equals("Left")){
						global.getOptions().setLeft(i);
						global.getMenuByName("controls").getMenuItemByName("txt_left").setText("Left: "+input.getKeyName(i));
					}
					else if (global.getCurrent().getMenu().getMenuItemByName("txt_key").getText().equals("Right")){
						global.getOptions().setRight(i);
						global.getMenuByName("controls").getMenuItemByName("txt_right").setText("Right: "+input.getKeyName(i));
					}
					else if (global.getCurrent().getMenu().getMenuItemByName("txt_key").getText().equals("Jump")){
						global.getOptions().setJump(i);
						global.getMenuByName("controls").getMenuItemByName("txt_jump").setText("Jump: "+input.getKeyName(i));
					}
					else if (global.getCurrent().getMenu().getMenuItemByName("txt_key").getText().equals("Pause")){
						global.getOptions().setPause(i);
						global.getMenuByName("controls").getMenuItemByName("txt_pause").setText("Pause: "+input.getKeyName(i));
					}
					global.getCurrent().setMenu(global.getMenuByName("controls"));
					break;
				}
			}
		}
	}