Detecting Key Press During Drag And Drop Operation

Update I found the issue. It was caused by having the “Input UI Only” set. If I set it to “Game and UI Only” it works. I want to use “UI Only” to prevent the Character movement when the inventory is open. Is there any other way to disable character movement when a UI is active?