private void setAccelerator(JButton button, KeyStroke ks) {
		Command cmd = mMap.get(button);
		cmd.setAccelerator(ks);
		button.setText(getAcceleratorText(cmd));
		button.invalidate();
		Preferences prefs = Preferences.getInstance();
		String key = cmd.getCommand();
		if (cmd.hasOriginalAccelerator()) {
			prefs.removePreference(MODULE, key);
		} else {
			prefs.setValue(MODULE, key, ks != null ? ks.toString() : NONE);
		}
	}