Now we're just taking in circles. What exactly can a malicious USB device do to a phone? On Windows it can press Win+R, but there's no equivalent on mobile.
Which keystrokes are you talking about and on which OS does that attack work? I can't think of anything that would work on my iPhone.