A script that is attached to the main camera enables handles movement depending on the active player
have you looked into spawning two players that handle their own movement separately and the camera just switches the possessed player (using the possess node: https://docs.unrealengine.com/...) hopefully I was helpful :D