Insert / type / paste text option is grayed out

I am attempting to map a button on a gaming keyboard to perform a text entry (a translated barcode) for a program we use at work

Within the insert / type / paste action, the “insert text by pasting” is grayed out, and I need to change it to “insert text by typing” as our program doesn’t recognize pasting

Any solution to this?

typing is only possible if you select plain text as format

We figured it out! We restated the automation completely from scratch and it worked