title: How To Check State of CapsLock Button with C# in Windows Store (WinRT) Application
body: <p>I'm trying to put a flyout warning if CapsLock button is On while typing something in PasswordBox.</p>
  
  <p>I'm <strong>NOT</strong> trying to find out if the pressed key is CapsLock</p>
  
  <p>I checked out the old,</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/System.Windows.Input.KeyboardDevice%28v=vs.85%29.aspx" rel="nofollow">KeyboardDevice</a> .NET 3.5</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.iskeylocked.aspx" rel="nofollow">Control.IsKeyLocked()</a> Windows Forms</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.console.capslock%28v=vs.110%29.aspx" rel="nofollow">Console.CapsLock</a> Not Available in Windows 8.1 Store Application</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.input.keyboard.getkeystates.aspx" rel="nofollow">Keyboard.GetKeyStates</a> Not Available in Windows 8.1 Store Application</p>
  
  <p>and WinApi Style calls. </p>
  
  <p>None of them seems suitable, Anyone has a suggestion</p>