public bool KeyPressed(ConsoleKeyInfo key) { var storedColors = ColorStore.StoreCurrentColors(); bool result = currentControlLayout.KeyPressed(key); storedColors.Restore(); return(result); }