Complex sentence: They fly to the galaxy and shout "TO INFINITY AND BEYOND!" right before the screen cuts to black and the credits start.
Split into simpler sentences: They fly to the galaxy and shout "TO INFINITY AND BEYOND!". The screen then cuts to black and the credits start.