Can't upload code on Arduino micro

So I was trying to test the keyboard functionalities of the micro and I wrote this code. But now it just keeps writing hello until I unplug the Arduino. Then if I try to upload a new code It doesn't let me do anything and it gives me errors. What can I do?

const int buttonPin = 4;
#include "Keyboard.h"
void setup() {
pinMode(buttonPin, INPUT);
Keyboard.begin();
}

void loop() {
int buttonState = digitalRead(buttonPin);
if (buttonState = HIGH);
Keyboard.print("HELLO");
}

(deleted)

The problem is that mine does'nt have a reset button. Is this one

Hi,
What version IDE are you using?
Do you have Pro Micro selected in the IDE as the controller/

Thanks.. Tom.. :slight_smile:

(deleted)

Thank you so much now it works

rarumo11:
The problem is that mine does’nt have a reset button. Is this one

https://www.amazon.es/gp/product/B01F78T2FS/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

It appears to have a reset pin though