Bug 294796 [Contributions] API request: LegacyActionTools#escapeMnemonics(String)
bundles/org.eclipse.jface/src/org/eclipse/jface/action/LegacyActionTools.java
public static final int findModifier(String token) {
		token = token.toUpperCase();
		if (token.equals("CTRL")) { 
			return SWT.CTRL;
		}
		if (token.equals("SHIFT")) { 
			return SWT.SHIFT;
		}
		if (token.equals("ALT")) { 
			return SWT.ALT;
		}
		if (token.equals("COMMAND")) { 
			return SWT.COMMAND;
		}
		return 0;
	}
	/**
	 * Returns a string representation of an SWT modifier bit (SWT.CTRL,
	 * SWT.ALT, SWT.SHIFT, and SWT.COMMAND). Returns <code>null</code> if the
	 * key code is not an SWT modifier bit.
	 * 
	 * @param keyCode
	 *            the SWT modifier bit to be translated
	 * @return the string representation of the SWT modifier bit, or
	 *         <code>null</code> if the key code was not an SWT modifier bit
	 * @see SWT
	 */
	public static final String findModifierString(final int keyCode) {
		if (keyCode == SWT.CTRL) {
			return JFaceResources.getString("Ctrl");