Well , each gamepad has a different id , eh ?
I never played around with the gamepad object , so this is just ontop of my head
Give each player an id variable that corresponds to the id of the gamepad you use to control the player with
And the
On gamepad key pressed
If player.id = gamepad.id
Do action