To clarify, flarn2006 means your "IF...NUMB9A=27 AND NUMB9B=13" should be IF...NUMB9A==27 AND NUMB9B==13. The "THEN NUMB9A=23:NUMB9B=13" part is fine.
Always think "IF something EQUALS something, THEN let something BE something." EQUALS is ==, BE is =.
I also don't know what the #UP part is. What happens in your game when we press UP, and when we don't?
2そうだね 未プレイ