@Override
    public void update(KeyEvent keyEvent,String input_form) {
        log.write(keyEvent.getKeyCode());
        if(input_form.equals("pressed"))
            keyPressed(keyEvent);
        else if (input_form.equals("released"))
            keyReleased(keyEvent);
        else if (input_form.equals("typed"))
            keyTyped(keyEvent);
    }