private void txtAnsKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtAnsKeyPressed
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            RegisterUserWorker ruw = new RegisterUserWorker(this, this.username, this.password, this.key, txtAns.getText());
            ruw.execute();

            this.setVisible(false);
            img.getGraphics().dispose();
        } else if (evt.getKeyCode() == KeyEvent.VK_ESCAPE) {
            this.setVisible(false);

            img.getGraphics().dispose();
            
            mf.cancelRegistration();
        }
    }//GEN-LAST:event_txtAnsKeyPressed