How to insert konami code for ai control

So I don’t know if I didn’t find the solution here but put simply I wanted to know how circleseverywhere inserted the konami code into his self randomizer (And I believe super randomizer) and how he was able to get the code to allow control of the ai and to skip levels. I don’t know what I wanna do with it yet. I just find it interesting and want to play around with it. Could more codes be put in for different effects? Example: up, down, down, up, left, left, right, right, start for say easy level ups (all exp at 99 or all enemies give 100 exp).

Also am extremely new to trying to hack roms so some common knowledge might go over my head.

I haven’t released this on my coding thread yet as I’m still adding more to it, but controlling enemies is one of the options in my debugger. Press B on a unit to view the menu, and enable global flag 0xEC to disable it from working.

mGBA_DGQMVHFKkX

To install on a rom:
Download this folder:
https://github.com/Veslyquix/ASM/tree/main/Debugger
Febuilder → advanced menus → insert ea → installer.event

Or if you just want to try it, I’ve put it on my fe8 self rando.