I found a reddit post that talks about what exactly the codes do (at least in Donkey Kong Country Returns[DKCR]): I pasted it below.
You're looking for something called button activators. Basically, a button activator is 4 digits within a code sequence, that does exactly what it says, it...