It behaves the same way that InputMap behaves. There is no Cancel button. Only an Ok button.
You can set the Cancelable parameter to False and then the user will only be able to close it with the Ok button (this is more logical than allowing to close it with the back key as the changes are always applied).