Detect and report key error