I think you didn't understand.
Dialog is not showed, player presses the Enter key, server shows a dialog and immediately calls OnDialogResponse
The dialog is shown, but it closes again after 1 millisecond because the Enter key is still pressed. This Enter key triggers button 1 too, which calls OnDialogResponse.