To answer Martin's questions.
Motherboards vary from 1) MSI B350M Pro-VD Plus with Ryzen 3 2200G and 8GB DDR4 memory (main machine on 24/7) plus a second one as a test machine.
2) ASRock B450M PRO 4 with Ryzen 3 3200G (2nd gen processor) and 8GB DDR4 memory (machine upstairs to stop me running up and dow the stairs)
All machines have the latest ArcaOS 5.0.6 installed (no updates at the moment).
Doug, the USB disk was the one that prompted the first post, other times have been downloading files fron one of my NAS boxes, saving a large file to local disk and a few others I can't remember.
Neil, so far I am unable to say what triggers it. I can do the same thing any number of times but one will trigger it.
BTW what are you using on your phone that lets you shut down the computer (I have VNC server on the main box to connect to my Linux boxes)
David, Your solution might give a clue as to what is happening and something like that would work on my upstairs box but not on the main one in the office (too much crawling about on the floor under the desk).
To All, it is nice to know there are others seeing the same problem - maybe we can work out if it is a timing problem or something else. The fact the computer continues working and only the keyboard and mouse/trackball seem to be effected (the USB 3 mounted disk finished the chkdsk without problems even though the USB 3 mounted kb/tb shut down).