buttons/actions question

the code looks OK - did you try building and loading it into an Arduino?
did it work?
remember to use code tags when including code