public void actionPerformed(ActionEvent evt) {

		// final int[] keycodes = {32, 37, 38, 39, 40 };

		cmd = "";

		if (leftKey.isPressed()) {
			cmd += "MOVE:" + gameClientHandler.game.getGameid() + ":" + "37"
					+ "\r\n";
			// pg.setLeftPressed(false);
		}

		if (upKey.isPressed()) {

			cmd += "MOVE:" + gameClientHandler.game.getGameid() + ":" + "38"
					+ "\r\n";

			upKey.setPressed(false);

		}

		if (rightKey.isPressed()) {

			cmd += "MOVE:" + gameClientHandler.game.getGameid() + ":" + "39"
					+ "\r\n";

			// pg.setRightPressed(false);

		}

		if (downKey.isPressed()) {

			cmd += "MOVE:" + gameClientHandler.game.getGameid() + ":" + "40"
					+ "\r\n";
			downKey.setPressed(false);
		}
		if (spaceKey.isPressed()) {
			cmd += "MOVE:" + gameClientHandler.game.getGameid() + ":" + "32"
					+ "\r\n";
			spaceKey.setPressed(false);
		}

		if (!cmd.equals(""))
			sendMessage();

		int fireCount = gameClientHandler.game.getCountFires();
		boolean isRepaint = false;

		for (int i = 0; i < fireCount; i++) {
			fireInfo fi = gameClientHandler.game.getNthFire(i);

			if (fi.time > 0) {

				fi.time--;
			}

		}

		if (fireCount > 0) {
			repaint();
			gameClientHandler.game.removeAllZeros();

		}

		/*
		 * for (int i = 0; i < keycodes.length; i++) {
		 * 
		 * if (PanelGame.ks.getKeyPressed(keycodes[i])) {
		 * 
		 * cmd = "MOVE:" + gameClientHandler.game.getGameid() + ":" +
		 * keycodes[i] + "\r\n"; sendMessage();
		 * 
		 * 
		 * 
		 * }
		 */

		// }

		// gameClientHandler.game.removeAllZeros();

	}