void main() { // Set local int to remove key when done resting SetLocalInt(GetEnteringObject(), "removekey", 1); }