public void KeyDownAndUp(KeyCode key, EventModifiers modifiers = EventModifiers.None) { HandleLastEventPauseVisibility(); if (EventUtility.KeyDownAndUp(window, key, modifiers)) { window.RepaintImmediately(); } }