IDEA-146427 Do not create a Keymap copy if dialog is cancelled