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

    if (key == KeyEvent.VK_BACK_SPACE)
    {
      if (screenName.length() != 0)
        screenName = screenName.substring(0,screenName.length() -1);
    }
    else if ((char) key >= '0' && (char) key <= 'z')
      screenName += (char) key;
    else if (key == KeyEvent.VK_ENTER)
    {
            MultiPlayerScreen mp = new MultiPlayerScreen(container, screenName);
            container.switchScreens(mp);
            mp.initializeConnections();
    }
  }