private Modifier systemModifier(){
  String os=System.getProperty("os.name");
  Modifier keyModifierOS;
  if (os != null && os.startsWith("Mac"))   keyModifierOS=KeyCodeCombination.META_DOWN;
 else   keyModifierOS=KeyCodeCombination.CONTROL_DOWN;
  return keyModifierOS;
}

private Modifier systemModifier ( ) { String os = System . getProperty ( "os.name" ) ; Modifier keyModifierOS ; if ( os != null && os . startsWith ( "Mac" ) ) keyModifierOS = KeyCodeCombination . META_DOWN ; else keyModifierOS = KeyCodeCombination . CONTROL_DOWN ; return keyModifierOS ; }
returns the key accelerator for the application . command for os x and control down for windows and linux .
