This isnt my skript but here.
options:
region: afkzone
# the region where players can get keys (must have worldguard)
every 5 minutes:
loop all players where [region at input is {@region}]:
make console execute command "givekey %loop-player% bigcrate key 1" # change command if you wish