javafx verifique si la entrada presionada

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