oh, You have to put those codes in the Shop.
First, when you enter the shop, (on the shopkeeper part) you have to press the first button (Button A) 3 times very quickly. Then the Shopkeeper will look suprised. When he is like that, you enter the Shop codes. (like, ABBA ACBA means: press button...