Bug 1095391 - The uppercase key pop would show lowercase when it is disappearing.

You don't really need to keep the reference of the children. You can set `lowercase-popup` or `uppercase-popup` at the parent element and it would affect the child.

The code here is too complex than what's needed.