This is a very minor, but slightly irritating buglet. Perl allows specifying hash table keys as plainwords, i.e. not enclosed in quotes as strings usually are. This means the two expressions are equivalent:
In the latter case, <key> is not recognized as a string, thus not highlighed as such.
Geany 0.18.1, fully updated Arch Linux.