public void KeyDown(int key, char c) {
		if(key == 1) { //ESC
			enabled = !enabled;
			if(enabled) {
				game.addComponent(inventoryComponent);
			} else {
				game.removeComponent(inventoryComponent);
			}
		}
		if(enabled) {
			if(key == 208) { //up
				inventoryComponent.up();
			} else if(key == 200) { //down
				inventoryComponent.down();
			} else if(key == 28) { //enter
				int selectedSlot = inventoryComponent.getCurrentlySelected();
				ScriptManager.executeFunction("inventorySelected", selectedSlot, game.getPlayer().getInventory().getItem(selectedSlot), game);
			}
		}
		
	}