Track whether a string is a key; Fixes #4.