IPT_KEYBOARD triggers the modal behavior. Arguably it should be slightly finer grained: if the system maps Esc, Tab, P, or any of the F-keys then modal.