@Override
	public void keyPressed(KeyEvent e) {

		if (e.getKeyCode() == UP_KEY)
			up = true;
		else if (e.getKeyCode() == DOWN_KEY)
			down = true;
		else if (e.getKeyCode() == LEFT_KEY)
			left = true;
		else if (e.getKeyCode() == RIGHT_KEY)
			right = true;
		else if (e.getKeyCode() == CHANGE_PLAYER_KEY) {
			room.player.get(currentPlayer).selected = false;

			currentPlayer++;
			if (currentPlayer >= room.player.size())
				currentPlayer -= room.player.size();

			room.player.get(currentPlayer).selected = true;
		} else if (e.getKeyCode() == KeyEvent.VK_EQUALS)
			room.player.add(Math.random() < 0.5 ? new Ninja(room) : new Wizard(
					room));

	}