Check where you've defined my_key_up, get_key, and up_key_var.

When you have a syntax error in that line, obviously one of the three is wrong defined.