Draw a line for the beetle to follow. Push q to clear. After you make the line push space.
I made it better.