In this case it is trying to have a ‘long’ text put into the console command interface in Company of heroes.
I have tried this both via the K95 icue software and the software from a Stream deck. Pasting from clipboard works, also input as hotkey works. But not Text. Manually typing from the keyboard works fine.
As a check i tried changing the input delay between characters, but it did not make it work.
Googling, it seems to be an issue that others also experience in general with macro keyboards. And i have also experienced this myself with other games in the past.
https://forum.corsair.com/forums/showthread.php?t=133633