How do I enter the Konami Code on the PC using a keyboard?

Solution 1:

http://pcgamingwiki.com/wiki/Metal_Gear_Rising:_Revengeance#Input_settings

The Konami Code can only be input with a controller.

However, you can use controller emulation software to send controller input with keyboard (unless the game blocks synthetic events).