Right now key_present() is case sensitive, only uppercase key IDs work. By using "grep -i", lowercase IDs should work too.