key violation on sec. key

How is it possible to determine which key causes an key violation??