private bool KeyDown(KeyCode InCode) { return Event.current.keyCode == InCode && Event.current.type == EventType.keyDown; }