Python InputLibrary is invalid to process InputEvent from UserWidget

I tried to override input method in a EditorUtilityWidget graph and pass the input event parameters to a ExecutePythonScript node. However, the InputLibrary cannot process input event well.

For example, I override OnKeyDown method and pass the KeyEvent to my Python script.

When I ran
unreal.InputLibrary.get_key(key_event).get_editor_property('key_name')
I got None though I did press a key at widget runtime. The same issues also happened for other API in InputLibrary. Most of them do not work anyway.

I know some InputEvent properties are not exposed in Python but it’s still an issue for these already known APIs.