@Override
	public void update() {
		if (InputHandler.instance.keyIsDown(KeyEvent.VK_ESCAPE) && (StateHandler.instance.getCurrentState() == State.PLAYING) && (waitTimer.getRemaining() == 0)) {
			StateHandler.instance.setCurrentState(State.IN_GAME_MENU);
			showing = true;
			waitTimer.reset();
		} else if (InputHandler.instance.keyIsDown(KeyEvent.VK_ESCAPE) && (StateHandler.instance.getCurrentState() == State.IN_GAME_MENU) && (waitTimer.getRemaining() == 0)) {
			StateHandler.instance.setCurrentState(State.PLAYING);
			showing = false;
			waitTimer.reset();
			destroy = true;
		}
	}