Change priority of exception throwing in Key.