keyword to store value(final)

I was about to comment on the use of code tags.
It's a pity though that the code does not compile.

To my eyes there is way too much happening in the ISR. What is connected to pin 2 to cause the interrupt ?