Unrecognized USB after uploading sketch

Hi Everyone! I’ve been working with the MKR1000 and trying to use it as an external keyboard for my computer, but after I upload the sketch I get a popup that reads “USB device not recognized.” The problem here is definitely the sketch because I can double tap the reset button, upload a blank sketch, and everything is fine. Could anybody help me figure out what about my sketch is causing this weird behavior? Thanks! :slight_smile:

Telegraph.ino (3.27 KB)