Does anyone know how to make a 'Cheat code' like in Duke Nukem, Doom, Quake , ect where you type a series of Letters to activate something..

I am making an Easter Egg, and would like to Have a 'code' to activate something.

I use to have the code but can't find it.

Any help?