$ENDGROUP
$EG
$ENDG
$EGRP
$EGROUP
Ends a series of Movements which belong to the corresponding $GROUP command. A Group behaves on the screen like a single line. Groups are described in detail in the chapter "Sections, Groups & Lines."
Only Movements can appear between $GROUP and $ENDGROUP commands -- no $SECTION, $GROUP or $LINE commands can appear inside a Group.
A $GROUP, $SECTION, $SCENE command closes the active $GROUP block. In these case you do not need to use the $ENDGROUP command (but you may to use it, if you prefer).