I wrote an application with JavaFX which will only be usable with keyboard\'s arrows.
So I prevented MouseEvent on Scene\'s stage, and I \"listen\" to KeyEvents.
I also swit
set the .requestFocus(); on initialize method to fire on .fxml file loading controller
@Override
public void initialize(URL url, ResourceBundle rb) {
/* the field defined on .fxml document
@FXML
private TextField txtYear;
*/
txtYear.requestFocus();
}