boolean (KeyEvent e) { int modifiers = e.getModifiers(); if (SystemInfo.isMac) { return !e.isMetaDown() && !e.isControlDown(); } return (modifiers & ActionEvent.ALT_MASK) == (modifiers & ActionEvent.CTRL_MASK); }