"Unknown Game" means the Action Replay has no built-in data for the title you have inserted. It is not an error you can fix by retyping the code — the device simply does not recognise the game's identifier.
There are two ways forward. The first is to add the entry manually, which means finding the game's ID and the codes formatted for it and entering them yourself. The second, and much easier, is to connect the device to a computer and use the official software to download the game's code list, then transfer it across. Once the game is recognised, codes entered afterwards work normally.
The common cause is a regional mismatch: a device set up for one territory will not identify a cartridge from another, and no amount of code entry changes that. Check the region on both the cartridge and the device before assuming the hardware is faulty.