That only works if other endpoint tries to act as usb host. While if it mimics usb device (classic BadUSB), then AFAIK any phone would accept without any questions.
This whole thread is bizarre. A whole lot of fretting over an attack that nobody bothered to describe.
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.