Fix bug when using --compass
Handle prefixes and case-insensitivity for keyframes. #1290.