Mapping multiplayer controls to single keyboard

Anyone have a known and working method for this? I have 2 players but I want to use one keyboard. I have a controller set up that checks for the player index based on the input key, but its not working. Is there a way to make this work in blueprints? If not how can it be done in C++. I cant seem to find much in the way of making this work.