public override bool HandlesKeyDown(Key key) { if (key == game.Mapping(KeyBind.PauseOrExit)) { game.Gui.SetNewScreen(null); } else if (key == game.Mapping(KeyBind.Inventory) && releasedInv) { game.Gui.SetNewScreen(null); } else if (key == Key.Enter && table.SelectedIndex != -1) { game.Inventory.Selected = table.Elements[table.SelectedIndex]; game.Gui.SetNewScreen(null); } else if (table.HandlesKeyDown(key)) { } else { game.Gui.hudScreen.hotbar.HandlesKeyDown(key); } return(true); }