using Godot; namespace Texty.Scripts { public class Credits : Node { public override void _UnhandledKeyInput(InputEventKey @event) { if (@event.Scancode == (uint)KeyList.Escape) { var menu = ResourceLoader.Load("res://Scenes/Menus/MainMenu.tscn"); GetTree().ChangeSceneTo(menu); } } } }