protected void setSearchBar(@Nonnull AbstractSearchBar searchBar) {
			setTop(searchBar);

			// Register event filter which will allow jumping from the search bar to other controls.
			// - UP ----> Select the containing tab-pane so users can switch tabs.
			// - DOWN --> Select the results so the user can navigate through results.
			searchBar.addEventFilter(KeyEvent.KEY_PRESSED, e -> {
				if (e.getCode() == KeyCode.UP)
					getParent().requestFocus();
				else if (e.getCode() == KeyCode.DOWN)
					results.selectCell();
			});
		}
Base for displaying the search bar + results pane for some content type.
recaf-ui/src/main/java/software/coley/recaf/ui/window/QuickNavWindow.java