Event OnKeyDown(Int aiKeyCode) Debug.Notification("いまからインベントリを開きます") Game.GetPlayer().OpenInventory() while Utility.IsInMenuMode() Utility.Wait(0.1) endwhile Debug.Notification("インベントリが閉じられました") EndEvent