public ConsoleAppKeyboardInputManager(ConsoleApp app)
{
this.Application = app;
this.handlers = new Stack<Dictionary<string, KeyboardEventHandler>>();
this.currentStackDepth = app.FocusManager.StackDepth;
app.FocusManager.SubscribeForLifetime(nameof(FocusManager.StackDepth), StackDepthChanged, app.LifetimeManager);
}