protected void keyTyped(char par1, int par2)
    {
        field_73905_m = false;

        if (par2 == 15)
        {
            completePlayerName();
        }
        else
        {
            field_73897_d = false;
        }

        if (par2 == 1)
        {
            mc.displayGuiScreen(null);
        }
        else if (par2 == 28)
        {
            String s = inputField.getText().trim();

            if (s.length() > 0)
            {
                mc.ingameGUI.func_73827_b().func_73767_b(s);

                if (!mc.handleClientCommand(s))
                {
                    mc.field_71439_g.sendChatMessage(s);
                }
            }

            mc.displayGuiScreen(null);
        }
        else if (par2 == 200)
        {
            getSentHistory(-1);
        }
        else if (par2 == 208)
        {
            getSentHistory(1);
        }
        else if (par2 == 201)
        {
            mc.ingameGUI.func_73827_b().func_73758_b(19);
        }
        else if (par2 == 209)
        {
            mc.ingameGUI.func_73827_b().func_73758_b(-19);
        }
        else
        {
            inputField.textboxKeyTyped(par1, par2);
        }
    }