Simultaneous execution of the C++ code and Blueprint Event

Thank you very much for your answer. InputAction cannot inherit from a C++ function, so I marked the C++ function as BlueprintCallable and called it from the Blueprint.