This wont work, not with brute force.
Arbitrary code execution requires a deep understanding of how the game works so you can play the game to set up a space in the RAM that overflows the area where you are allowed to write, then jumping to the correct area in the RAM and have it executed.
Random button pressing will literally do nothing. Not even if you have more time than the universe it self has left. Speeding up button presses would not do anything towards finding an exploit, only writing code in once you have it set up like the super mario video.
And to top it of, the code libraries and languages and compilers that are used today, tries to prevent such things to be possible. If it was possible, brute force is not a viable option. You can come further by programming an AI to look for bugs in the code (not a viable option either)