Without getting a special keyboard driver for the second keyboard I don't think you can do it. You need to know which device generated the keypress and once you go past the device driver that isn't possible as far as I know.