Remove Schwarzwald.visibleWindows; use application.keyWindow instead