Hi Tarkus1971
You need to assign the key.lua to the object that you want to be the key, and make the object dynamic. To make it collectable.
As far as I know any item can be a collectable.
In the gate or doors "Use Key" just place the name of the object exactly as it appears in its name property.
I may be old, but at least my memory still ....hmmm
Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)