You want to change = to ==. Also, what is "(BUTTON(0)==#UP)==0" supposed to do? If you want to test if it's not equal to #UP, do "BUTTON(0)!=#UP". Or did you mean to use "AND" instead of the first ==?