@Override
	public boolean keyDown(int keycode) {
		while (keyNotDown) {
			if (MOVE_KEYS.containsKey(keycode)) {
				final Direction dir = MOVE_KEYS.get(keycode);
				if (dir.getXis().equals("HORIZONTAL")) {
					player.setXD(dir.getSpeed());
				} else if (dir.getXis().equals("VERTICAL")) {
					player.setYD(dir.getSpeed());
				}
				keyNotDown = false;
				player.changePlayerDirection(dir.getDirection());

			} else {
				keyNotDown = false;
			}
		}
		switch (keycode) {
			case Keys.SPACE:
				playScreen.checkPlayerInteraction();
				break;
			case Keys.ENTER:
				boolean visible = playScreen.isMenuVisible();
				playScreen.setMenuVisible(!visible);
				break;
			case Keys.A:
				boolean menuVisible = playScreen.isMenuVisible();
				if (menuVisible) {
					Gdx.app.log(ChromeGame.LOG, "Save Pressed");

					// Gdx.app.log(ChromeGame.LOG, GameFile.playerName);
					// Gdx.app.log(ChromeGame.LOG, GameFile.playerMoney
					// + "");
					//
					// GameFile.playerPosition = new Vector2(
					// player.getX(), player.getY());
					// Gdx.app.log(ChromeGame.LOG,
					// GameFile.playerPosition.x + ","
					// + GameFile.playerPosition.y);
					//
					// GameFile.currentMap = playScreen.mapName;
					// Gdx.app.log(ChromeGame.LOG, GameFile.currentMap);
					//
					// Gdx.app.log(ChromeGame.LOG, GameFile.musicName);
					//
					// GameSaver.save();
				}
				break;
		}

		return true;
	}