You have the wrong import for MouseEvent. You need javafx.scene.input.MouseEvent, not the AWT version.
MouseEvent
javafx.scene.input.MouseEvent