Return None for invalid key