Javafx Verifique se Enter Pressado

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