Fixed support for escape to close ui screen layers - now correctly iterates the layer stack.