protected boolean appliesToPressed(KeyEvent e) {
		// only match special characters if the modifiers are consistent
		if (!characterDef) {
			if (!((ctrlDown && e.isControlDown()) || !ctrlDown))
				return false;
			if (!((altDown && e.isAltDown()) || !altDown))
				return false;
		}

		return ((!characterDef) && (this.keyCode == e.getKeyCode()));
	}