There were efforts in past to automatically focus command line with any keyboard input.
But from own experience I know, that this sometimes stops working.
It may depend of the status of active tool, but I have no rule yet, when it happens and how to get it working again.
The main shortcut to focus the command line is
CTRL-M, which should work always, at least from my experience.
This is documented in the
manual
investing less than half an hour into Search function can save hours or days of waiting for a solution