Getting sporadic behavior when interacting with file explorer

I am using XModules to try to upload a document into the web browser I am testing…

{
“Command”: “XDesktopAutomation”,
“Target”: “true”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “C:\Users\mikes\downloads\3 (1).png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${Key_ENTER}”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XDesktopAutomation”,
“Target”: “false”,
“Value”: “”,
“Description”: “”

This will work most of the time, but on some occasions the cursor will randomly click in file explorer and ruin the whole test. I am new to this testing software if anyone can tell me a more consistent way on interacting with file explorer and uploading documents it would be greatly appreciated.

Hi, a video of the issue could be helpful to see what is going on.