Calling a function from actor component for Enhanced input inside Player Controller

Disclaimer: Missing some details, if my assumptions are incorrect please add some screenshots of your blueprints so that we can understand the context better.

If I understood correctly, you created some logic in your component A’s graph which is now inaccessible in your actor B’s graph. If this is your logic (and not something built-in), you should be able to (see image) set its “Access Specifier” to Public, which will allow you to call it from other blueprints (including your controller).