Stores a value under a key