internal static void Up(InputDevice device, UIElement element = null) { switch (device) { case InputDevice.Keyboard: KeyboardHelper.Up(element); break; case InputDevice.Gamepad: KeyboardHelper.GamepadDpadUp(element); break; default: throw new Exception("Invalid input device."); } }