Hello,
I finally got a look at the video. The 4x4 matrix that you're using is not the same as mine. The markings for the switch numbers are running vertically instead of horizontally. It may have an entirely different pinout than the one I'm using (which is blue).
That means you may actually be shorting out the nano by simply pressing a 4x4 matrix button. You would have to read the schematic and probably switch around half the wires to make it work, and it may also require different programming than the one I use. The one I use is marked YL-102 and looks like this:
Notice that the switch numbers are marked K1, K2, etc across horizontally when the pins are oriented toward the bottom as shown. Note the marking YL-102 in the lower right corner. (Although you can't see it from this picture angle, the pins are numbered 1 through 8 from left to right).
This is actually the first time anyone used an incompatible button matrix, so I am upgrading the wiki now to include this additional information.
I feel like this is probably your major issue.
Another issue might be that the batteries you're using look like they might be cheep chinese knock-offs. Those often cause the robot to stop working randomly, especially when its doing stressful moves, because they have overly sensitive cutoff circuits. But, replace the button matrix first, or figure out the correct sequence of wiring for the one you have.