public void tick() {
		tickCount++;
		if (!hasFocus()) {
			keys.releaseAll();
		}
		keys.tick();
		mouse.tick();
		if (menu != null) {
			menu.tick();
		} else {
			level.tick();
			if (keys.isKeyPressed(KeyEvent.VK_E)) {
				InventoryMenu m = new InventoryMenu(this, level);
				m.addInventory("Player", player.inventory);
				setMenu(m);
			}
			if (keys.isKeyPressed(KeyEvent.VK_ESCAPE)) {
				setMenu(new PauseMenu(this, level));
			}
		}
		
		if(shouldFullScreen != fullScreen) {
			if(shouldFullScreen) {
				fullScreen();
			} else {
				normalScreen();
			}
		}
	}