Following the same idea of Create a keyboard shortcut to focus on the 3D viewport, trying to reduce the use of the mouse, in the same way, as currently there are already several shortcuts to change the focus to specific windows within Studio (
Ctrl+Shift+X = Explorer,
Ctrl+Shift+P = Properties, etc), I suggest creating a keyboard shortcut to return the focus to the script editor.
If possible, create keyboard shortcuts for ALL WINDOWS in Studio.
This will make the workflow a lot easier.