Fixes the fail-to-close error on the keyboard in IE8. This is due to how...

... it handles for (var in array), instead we need to use a loop