move modal context logic to KeyShortcutPresenter