What you need to do then is implement some sort of condition in which a MonoBehaviour script can be applied to 2 different Game Objects but accept 2 different forms of input.
Perhaps a boolean which you could set to true for player 1 and leave false for player 2, which on Update or wherever you're getting your input in check for the value of that variable and switch between input schemes.