Method 1
Weighted key on string, held out of reach by anchor in ice cube or container. In this case, the measured string and keys can be easily reached once the second retaining device has thawed sufficiently and released the full length of the string.
Method 2
In this variation of the previous method you need only one anchor point.