@Override public void keyReleased(KeyEvent arg0) { GameName.getInstance().currentGui.onUnType(arg0.getKeyCode()); key[arg0.getKeyCode()] = false; }
@Override public void keyPressed(KeyEvent arg0) { GameName.getInstance().currentGui.onType(arg0.getKeyCode()); key[arg0.getKeyCode()] = true; }