How does someone map 2 players to one keyboard

how do you map 2 player game using one keyboard with different controls, while it is on one stationary camera view

Are you still looking for answer because I am able to do it.

if you know how to do then post it up. its not something i need but it would be interesting to see your method and it would help others who may have this issue.