don't send key events to inventory gui when it's hidden