def get_pressed_keys():
    """Emulates pygame.key.get_pressed().

    That is, the return value despite being a different object, works
    just like the return value of pygame.key.get_pressed().
    """

    return (

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

        ### otherwise return an empty GetterFrozenSet
        else EMPTY_GETTER_FROZENSET

    )
Emulates pygame.key.get_pressed().

    That is, the return value despite being a different object, works
    just like the return value of pygame.key.get_pressed().
    
nodezator/pygamesetup/services/play.py