I'm aiming to have cheat codes in my game but I don't know how I would do that.
Develop games in your browser. Powerful, performant & highly capable.
Here is one way to do this:
construct.net/en/forum/construct-2/how-do-i-18/invisible-textbox-142475