Controlling RGB LED over serial

Did you select "No line ending" in Serial Monitor? If not, your 'a' will turn off the red LED and the line ending will immediately turn it back on.