33x32 RGB matrix connect with keypad problem

I have adarfruit 32x32 RGB matrix connected with push button to control LED pixel movement upward, downward, left and right direction.

Please kindly provide any solution for this code

thanking you

rgb_movment.ino (1.84 KB)