public void removeEvents(){
  scene.setOnKeyPressed(null);
  scene.setOnKeyReleased(null);
  up=down=left=right=sprint=jump=shootFireball=false;
}

public void removeEvents ( ) { scene . setOnKeyPressed ( null ) ; scene . setOnKeyReleased ( null ) ; up = down = left = right = sprint = jump = shootFireball = false ; }
called during final flag pole sequence . < br > used to disable player from controlling mario .
