I got the key but it won't let me through the door in Pokemon pearl?

Maybe you're trying to open the wrong door with the key.