I would imagine, depending on how it is done, that the malicious usb device might get a few keystrokes in before the system is completely down.