Up, Up, Down, Down: The Cheat Code a Programmer Forgot to Delete

Updated November 24, 2026•4 min read
Up, Up, Down, Down: The Cheat Code a Programmer Forgot to Delete

Up, Up, Down, Down, Left, Right, Left, Right, B, A.

If you grew up with a game controller in your hands, there's a good chance your thumbs can still play that sequence without thinking. It's known as the Konami Code, and it may be the most famous secret in gaming. It also started as a small shortcut that was never meant to leave the office.

Level 1: A game that was too hard

In the mid-1980s, a programmer at the Japanese company Konami named Kazuhisa Hashimoto was working on a home version of Gradius, a fast and very tough space shooter that had been a hit in arcades.

There was one problem. To test the game properly, Hashimoto had to play it again and again, and he kept losing. Gradius gave players upgrades as they collected power-ups, but starting from scratch every time made testing painfully slow.

So he gave himself a shortcut. Pressing a particular sequence of buttons on the pause screen would instantly hand the ship a full set of upgrades. The sequence was easy to remember but unlikely to be typed by accident: Up, Up, Down, Down, Left, Right, Left, Right, B, A.

Level 2: The secret escapes

Developers usually remove testing shortcuts before a game is released. This one stayed in. In later interviews, Hashimoto said he simply forgot to take it out.

So Gradius came out in 1986 with the code still hidden inside. Players eventually found it, and word spread the way secrets did before the internet: through friends, schoolyards, and gaming magazines.

Level 3: Thirty lives

The code became truly famous a couple of years later, thanks to Contra. This run-and-gun action game, released for the Nintendo Entertainment System in North America in 1988, was known for being brutally difficult. Players normally started with just three lives.

Enter the code on the title screen, though, and you started with thirty. For a lot of kids, that was the only way they ever reached the final stage. The code became so connected with the game that some players still call it the "Contra code."

Bonus stage: When cheating became a business

The popularity of codes like this one showed that players loved a little help. In the early 1990s, a device called the Game Genie went further. It plugged into a game cartridge and let players type in codes that changed how a game behaved, from extra lives to higher jumps.

Nintendo took the device's maker to court, arguing that it altered their games without permission. Nintendo lost. Cheat books, hotlines, and magazine pages full of codes became a big part of gaming culture.

Level 4: Beyond the game

Konami kept the code alive by hiding it in many of its later games, sometimes as a cheat and sometimes as a playful nod. Other developers added it to their own games as a tribute.

Then it escaped gaming altogether. Some websites have hidden small surprises that appear if you type the sequence on your keyboard. The code has turned up on T-shirts and in songs. In the 2012 animated film Wreck-It Ralph, a character enters the code to unlock a secret inside a game. Viewers who knew the sequence got the joke right away.

Level 5: A tribute

Kazuhisa Hashimoto passed away in 2020. When the news spread, fans around the world honored him the best way they knew how. They posted the code: Up, Up, Down, Down, Left, Right, Left, Right, B, A.

Game complete

Today, games rarely use cheat codes like this. Unlockable extras and adjustable difficulty settings do much of the same job. But the Konami Code has lasted because it represents something players still love: the feeling of knowing a secret, and the small thrill of a game that rewards you for being curious.

Not bad for a shortcut that was supposed to be deleted.