private void init() {
    	addKeyListener(new KeyListener(){
            public void keyPressed(KeyEvent e) {}

            public void keyReleased(KeyEvent e) {}

            public void keyTyped(KeyEvent e) {
				if(e.getKeyChar() == 10){
					myParent.verifyRegex();
				}else if(e.getKeyChar() == 13){
					myParent.failRegex();
				}
			}
    	});
    }