@staticmethod
def _get_flag_value(event):
    """Note, this may be able to be made more accurate,
            i.e. handle two modifier keys at once."""
    flags = event.modifierFlags()
    if flags == 256:
        value = 0
    else:
        value = 1
    return value
