@Override
	public void keyTyped(KeyEvent event) {
		char ch = event.getKeyChar();
		if (ch == '\n' || ch == '\r') {
			if (canOpenSelection()) {
				openSelection();
			}
			event.consume();
		} else if (ch == '\b' || ch == KeyEvent.VK_DELETE) {
			if (canDeleteSelection()) {
				deleteSelection();
			}
			event.consume();
		}
	}