After six, yes six long months of trying to sort this touchscreen and keyboard detach issue, I finally found the solution, use the below link to update the drivers
https://drp.su/en/devices/chipset/in...windows-10-x64
I was able to recreate the issue and solve it, what seems to be going on, is a device driver update is causing the problem, I had Microsoft dial into my computer and try to fix, to no avail, the computer was replaced twice under warranty and the third time was just not believable so I sorted this out myself.
On investigation, what was causing my Toucshcreen to stop working was the "Human Interfaces Devices", "Elan ezTouchFilter driver, dated, 21/06/19, version 1.0.0.8. This dodgy bit of code caused me no end of problems, it was getting updated automatically, once I stopped this version from being installed, all is well and I can actually use the computer for its intended use.
the above link and its program has the smarts to fix, thank goodness and strangely enough, its free, how about that