Duke Nukem 3D's cheats are typed in during play, and the classic pair is all most people ever need.
These work in the original single-player game and most faithful source ports; some modern remasters disable the console entirely, so check before you blame your typing. Type the code, press Enter, and get on with the mayhem.