Implementing auto-key mapping.