public static void detectPressedKey(){
			int[] keys = {Keyboard.KEY_1, Keyboard.KEY_2, Keyboard.KEY_3,Keyboard.KEY_4,Keyboard.KEY_5,Keyboard.KEY_6,Keyboard.KEY_7,Keyboard.KEY_8,Keyboard.KEY_9};
			boolean found = false;
			for(int i = 0; i < keys.length; i++){
				
				if(Keyboard.isKeyDown(keys[i])){
					selectedSlot = i;
					found = true;
					break;
				}
				
			}
			if(found == false) selectedSlot = -1;
	}