C++ Where to build a custom input?

I’m building a custom input using Windows raw input. I’ve got the basics of it working outside of the engine and it’s time to get it into ue5. What c++ class would be appropriate for this? The input will drive a Pawn but I would not like it to be built directly into the Pawn. There is an InputComponent (under ActorComponent) and it sounds like it’s appropriate. Can an Actor Component like this be used under Pawn? Would this be the best place to build a custom input off of?