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