from ~Test Kit~ NES Control Deck Test Cartridge
Try every input on the 3rd test, should your controller have that many buttons.