Can you screw something that will not loosen?
I think you're asking "How can permanently anchor a screw so it doesn't back out on it's own?"

If that's the case, adding glue to threads before screwing is likely the best bet. Epoxy would be the strongest, but for holding keys, likely overkill. Wood glue would probably be sufficient.