You may want to use B AND #UP, etc, rather than B==#UP if you want to detect combo button presses.