protected override void OnKeyUp(KeyUpEvent e) { if (keyCombination.IsPressed(new KeyCombination(KeyCombination.FromKey(e.Key)), KeyCombinationMatchingMode.Any)) { box.Colour = Color4.DarkGray; } base.OnKeyUp(e); }
protected override bool OnKeyDown(KeyDownEvent e) { if (keyCombination.IsPressed(new KeyCombination(KeyCombination.FromKey(e.Key)), KeyCombinationMatchingMode.Any)) { box.Colour = Color4.Navy; } return(base.OnKeyDown(e)); }