I want to create Keyboard Shorcut in Editor Viewport because I need mouse position.

Thank for your answer, but i would prefer no to use c++, I see a method to detect inputs in editor, but only work when the Utility Widget is focused, maybe there is a way to use it without focus.