Problem with Arduino Leonardo

To prevent some of the issues that you might encounter when using the Leonardo as a HID, you can read Pro Micro clone programmer error - #18 by sterretje.