Did you make the change I pointed out in reply #2? That is why the right button does not do anything. Also, after you correct that you will have to fix the for loop to make it blink 5 times (as I indicated in reply #4).
After you make those changes look at the code and see what code is similar in order to make a function for blinking.