Simplified key detection