21 Jun 2016 table.setOnKeyPressed(event -> { if (event.getCode() == KeyCode.ENTER && table.getSelectionModel().getSelectedItem() != null) .