Fixed sound debug thing to only work when nothing (or the main_element) is in focus.