Avoids "blocked" keys when another window takes the focus.