public void typingPressed(KeyEvent e)
  {
    int key = e.getKeyCode();

    if (key == KeyEvent.VK_BACK_SPACE)
    {
      chatBox.backSpace();
    }
    else if (key == KeyEvent.VK_SPACE)
    {
      chatBox.addToCurrent(" ");
    }
    else if ((char) key >= '0' && (char) key <= 'z')
      chatBox.addToCurrent((char) key);
    else if (key == KeyEvent.VK_ENTER)
    {
      chatting = false;
      chatBox.flush();
    }
  }