disable key handling while dialogs are open