How to distinguish between multiple keyboards?

I am working on a game where we would like to include the ability for two keyboards to be used to control two players.
I had found this post

but the link it provided was sadly 404.

Can anyone help put me on the right track?

Thank you for your time.

I would also like to know! bump