Only run shortcuts when window is in focus