public void actionPressed(KeyEvent e)
  {
    int keyCode = e.getKeyCode();
    PlayerCommand pc = null;

    if (keyCode == KeyEvent.VK_RIGHT)
    {
      pc = new PlayerCommand(PlayerCommand.PRESS_RIGHT);
    }

    if (keyCode == KeyEvent.VK_LEFT)
    {
      pc = new PlayerCommand(PlayerCommand.PRESS_LEFT);
    }

    if (keyCode == KeyEvent.VK_UP)
    {
      pc = new PlayerCommand(PlayerCommand.PRESS_UP);
    }

    if (keyCode == KeyEvent.VK_Z)
    {
      pc = new PlayerCommand(PlayerCommand.SHOOT);
    }

    if (keyCode == KeyEvent.VK_ENTER)
      chatting = true;
    
    if (pc != null)
      gameClient.sendCommand(pc);

  }