javafx periksa apakah enter ditekan

filterTextField.setOnKeyReleased(event -> {
  if (event.getCode() == KeyCode.ENTER){
     // do what is to do
  }
});
Inquisitive Iguana