I am currently working on a project in which I would like to be able intercept a specific key combination from a standard USB HID keyboard with a microcontroller. The purpose is to use the keyboard to control a peripheral while also being able to use the keyboard as input to a computer.
My thinking is that the peripheral will have a USB input for an HID keyboard, and a USB output, to send the keystrokes to the computer from the peripheral. I am fairly certain that it is not possible to have one keyboard be used with two devices simultaneously, so my thought is that the peripheral will have to intercept all keyboard input, and check for the key combination. Then, it would have to be able to be recognized as an HID by the computer, and send the input to the computer as an HID.
Is this correct? If so, is this feasible to do with a microcontroller like an XMEGA?