Java tutorial
/* * Output: Menu shortcut key mask = 2 */ import java.awt.Toolkit; public class MainClass { public static void main(String[] args) { Toolkit tk = Toolkit.getDefaultToolkit(); System.out.println("Menu shortcut key mask = " + tk.getMenuShortcutKeyMask()); } }