The code example, wherever you got it from above, is broken. It will fail to jump sometimes.
I wrote about this before: the Unity example code in the API no longer jumps reliably. I have reported it. Here is a work-around:
Keep in mind if you want to type in random bits of code like this, 100% of spelling, capitalization, punctuation and spacing must be absolutely precisely correct, otherwise it will not work at all.
ALSO, as BenniKo points out, if you post a code snippet, ALWAYS USE CODE TAGS: