Make sketch wait for button

Is the switch wired like this. Note that the diagonal pins are connected.