here is the error output i get:
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.5 (Windows 7), Board: "Teensy 2.0"
sketch_oct24a:8: error: invalid digit "8" in octal constant
sketch_oct24a:9: error: invalid digit "9" in octal constant
sketch_oct24a:5: error: expected unqualified-id before numeric constant
sketch_oct24a:7: error: expected unqualified-id before numeric constant
sketch_oct24a:4: error: expected unqualified-id before numeric constant
sketch_oct24a:10: error: expected unqualified-id before numeric constant
I am assuming the errors are at line 8,9,5,7,4,10...
any help would be GREATLY appreciated!
at the top of your program. Depends which version of the device and IDE you have.
I am not sure what Keyboard is, and I am not sure if the compiler knows, either.
You should consider "debouncing" the switch, but that is not causing your compilation error.
8 and 9 are indeed not valid octal digits, but they don't visibly appear in your program anywhere. You need to be aware
that the line numbers of the errors are sometimes spurious, and sometimes occur in included header files, but you don't
have any included header files here anyway.
Check you don't have any garbage characters outside the screen view at the end of long lines of blanks in the code.
Apart from those issues, your code looks valid to me.