'Func-def not allowed...' error on IR MP3 controller

You need another close curly brace after the end of the switch statement, just before the 'int getIRKey() {' line. I believe the IDE has an option to indent code, and if you use it, it can help identify where you are missing closing brackets.