本示例为 wpsKeyControl、wpsKeyShift 和 wpsKeyA 等 wpsKey 常量显示组合键字符串 (Ctrl+Shift+A)。

CustomizationContext = ActiveDocument.AttachedTemplate
MsgBox KeyString(KeyCode:=BuildKeyCode(wpsKeyControl, _
    wpsKeyShift, wpsKeyA))