Adding mouse interactions to the JavaFX module