Did you not notice all of these warning messages telling you that you were doing the 'switch/case' statement wrong? Look up how to write a 'switch/case' statement correctly.
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino: In function 'void loop()':
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:89:24: warning: statement has no effect [-Wunused-value]
case1: 0xBA45FF00;//motor1 power on/off speed=0 ("one_btn")
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:95:24: warning: statement has no effect [-Wunused-value]
case2: 0xE718FF00;//motor1 speed up (up_btn)
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:102:24: warning: statement has no effect [-Wunused-value]
case3: 0xAD52FF00;// motor1 speed down (down_btn)
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:109:24: warning: statement has no effect [-Wunused-value]
case4: 0xBB44FF00;//motor2 power on speed 0 "four_btn"
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:115:24: warning: statement has no effect [-Wunused-value]
case5: 0xA55AFF00;//motor2 speed up (FORWARD_btn)
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:122:24: warning: statement has no effect [-Wunused-value]
case6: 0xF708FF00;// motor2 speed down (REWIND_btn)
^
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:89:7: warning: label 'case1' defined but not used [-Wunused-label]
case1: 0xBA45FF00;//motor1 power on/off speed=0 ("one_btn")
^~~~~
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:95:7: warning: label 'case2' defined but not used [-Wunused-label]
case2: 0xE718FF00;//motor1 speed up (up_btn)
^~~~~
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:102:7: warning: label 'case3' defined but not used [-Wunused-label]
case3: 0xAD52FF00;// motor1 speed down (down_btn)
^~~~~
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:109:7: warning: label 'case4' defined but not used [-Wunused-label]
case4: 0xBB44FF00;//motor2 power on speed 0 "four_btn"
^~~~~
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:115:7: warning: label 'case5' defined but not used [-Wunused-label]
case5: 0xA55AFF00;//motor2 speed up (FORWARD_btn)
^~~~~
/Users/john/Documents/Arduino/sketch_oct25a/sketch_oct25a.ino:122:7: warning: label 'case6' defined but not used [-Wunused-label]
case6: 0xF708FF00;// motor2 speed down (REWIND_btn)
^~~~~