How to control 2 characters with one keyboard?

Hi , I am creating a 2d fighting game but I encountered an issue regarding controlling both characters with the same keyboard, I tried a few option that were used in UE4 but dosen’t seem to work in UE5, does anyone has a good tutorial or a template that I can see to fix this?