Is it posible connect 2 keyboards and difference beetween them?

In a window with a single textfield accepting input from 2 connected keyboards.

This are HID devices acting as normal keybords in the system, send 20 Alphanumeric chars (keys) and a intro
It is for Linux Raspbian

It is possible to know which keyboard was used?

I have this issue with one project. I can tell you that it’s not possible in Xojo code alone. I do not know if there is a workaround on Linux.