SerialEvent() wont work

First time posting. Two issues which I am not sure are already covered, but that I found interesting as a noob. In programming the Arduino Micro, I needed to insert the above serialEventrun() code as well as change the "carriage return" symbol to a single character, for some strange reason.