protected final void onKeyPress(char var1, int var2) {
      if(var2 == 14 && this.name.length() > 0) {
         this.name = this.name.substring(0, this.name.length() - 1);
      }

      if("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ,.:-_\'*!\"#%/()=+?[]{}<>".indexOf(var1) >= 0 && this.name.length() < 64) {
         this.name = this.name + var1;
      }

      ((Button)this.buttons.get(0)).active = this.name.trim().length() > 1;
   }