How a single player controls two pawns at the same time

I want two players on one computer, each owning a different pawn, like the old classic game.

For example, WASD moves a single pawn.

On the same keyboard and same computer, IJKL controls the other pawn.

A scene can have 2 pawns or more.

The camera is fixed and positioned, so there is no problem.

How do I implement it?

Player controller has reference a number of pawns. Keybinds map to functions like "MovePlayer1PawnLeft()’ and “MovePlayer2PawnLeft()”. All pawns have generic functions like “MoveLeft()”. The player controller then sends the move order to the appropriate pawn.

Would look like:

KeyPress >> PlayerController::MovePlayer1PawnLeft() >> Pawn1:MoveLeft()