I don't think that this is possible at this time.
What you *can* do is to not use the $input identifier and to make your own custom dialog window instead. You can close your own dialog windows with /dialog.
If you're unfamiliar with dialogs, you can read
this tutorial on dialog design and
this tutorial on the more general aspects of dialogs.