get key in script