@Override
	public boolean dispatchKeyEvent(KeyEvent e) {
		if (e.getID() == KeyEvent.KEY_PRESSED) {
			keyPressed(e.getKeyCode());
	  } else if (e.getID() == KeyEvent.KEY_RELEASED) {
	  	keyReleased(e.getKeyCode());
	  } else if (e.getID() == KeyEvent.KEY_TYPED) {
	  	keyTyped(e.getKeyChar());
	  }
	  return false;
	}