How do i add cheat code to my game ?

Hey guys currently im writing a maze game for my project and i need to add cheat code to my game how do i do that ?

thank you for your help
For example at the moment the user is aksed to input a move, but you input "CHEAT" instead of for example "UP", the program allows you to enter a coordinate and teleport there.
Can you post your code?
Registered users can post here. Sign in or register to post.