Mouse lock to viewport in blueprints

This is from the blueprint I derived from Character, which handles camera and movement:

Set Inventory Mode and Set Normal Mode, are 2 functions defined in my custom Player Controller descendant blueprint, which only set the Show Mouse Cursor value to true/false, respectively.