def get_pressed_mod_keys():
    """Emulates pygame.key.get_mods().

    That is, the return value is also a bitmask or pygame.locals.KMOD_NONE.
    """

    return (

        ### return a bitmask for the current frame index if there's one
        BITMASK_MAP[GENERAL_NS.frame_index]
        if GENERAL_NS.frame_index in BITMASK_MAP

        ### otherwise return pygame.locals.KMOD_NONE
        else KMOD_NONE

    )
Emulates pygame.key.get_mods().

    That is, the return value is also a bitmask or pygame.locals.KMOD_NONE.
    
nodezator/pygamesetup/services/play.py