Key analyzer