This worked for me.
In the project settings, uncheck “Should Flush Pressed Keys on Viewport Focus Lost”
Found in this post thanks to @bigstumpy
Also make sure Is focusable is unchecked in the widgets if you are not wanting them to take focus.
in my case the entry widgets were steeling focus and messing with my inputs.