To create a dual dialogue, first write the two pieces of dialogue below each other, as you usually would.
Afterwards, put the cursor on the first character name.
Open the element menu by clicking the character icon on the left side of the page.
Select the "Make dual" option at the very bottom of the element menu (see screenshot).
The keyboard shortcut for this is Cmd + Option + U.