title: JavaFX - How do I turn off a ToggleButton's automatic setSelected(bool) feature?
body: <p>When you add a basic ToggleButton it automatically has the ability to be selected or not via spacebar (if traversable, I turned that off though) or mouse click without having to write any code yourself. Is there an easy way to turn this off? </p>
  
  <p>My current workaround which works is I create a method for the event on that ToggleButton called .setOnMouseClicked(this::handleMouseClick), and within that handler I call setSelected(false)... however I want to call a different method within that which has setSelected(false) instead, but it doesn't work and the ToggleButton gets selected still which I find odd.</p>
  
  <p>I tried searching for someone with a similar problem, but the only thing I found maybe related was to create an EventFilter on a parent pane and capture the automatic events somehow to prevent them from firing? No idea how that works though. Any help is greatly appreciated.</p>