Ignore key input if mouse is uncaptured