@classmethod
def modifier_bit(cls, keycode):
    """Return the modifer bit to be set in an HID keycode report if this is a
        modifier key; otherwise return 0."""
    return (1 << keycode - 224 if cls.LEFT_CONTROL <= keycode <= cls.
        RIGHT_GUI else 0)
