Thats not the problem, the keys wont work when the focus is on the 2nd machine.

The keymaps work fine, as long as I have to focus on the 1st machine.