It's seems to be a bug in JavaFX 11.0.1 for MacOS X:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: _type > 0 && _type <= kCGSLastEventType'
terminating with uncaught exception of type NSException
It should be fixed in JavaFX 11.0.2. Will be included within the next Desktop release.