private void initEvents(){
  setSelectionSounds(play,hScore,credits,quit,quitY,quitN);
  play.setOnAction(null);
  hScore.setOnAction(null);
  credits.setOnAction(null);
  quit.setOnAction(null);
  quitY.setOnAction(null);
  quitN.setOnAction(null);
  scene.setOnKeyPressed(null);
  scene.setOnKeyReleased(null);
}

private void initEvents ( ) { setSelectionSounds ( play , hScore , credits , quit , quitY , quitN ) ; play . setOnAction ( null ) ; hScore . setOnAction ( null ) ; credits . setOnAction ( null ) ; quit . setOnAction ( null ) ; quitY . setOnAction ( null ) ; quitN . setOnAction ( null ) ; scene . setOnKeyPressed ( null ) ; scene . setOnKeyReleased ( null ) ; }
initializes key and action event of game . < br > also defines player controls .
