using Godot; namespace Texty.Scripts; public partial class Credits : Node { public override void _UnhandledKeyInput(InputEvent @event) { if (@event is InputEventKey { Keycode: Key.Escape }) GetTree().ChangeSceneToFile("res://Scenes/Menus/MainMenu.tscn"); } }