title: UWP/WinRT: How to make the tab key behave as normal in a TextBox?
body: <p>By default, the Textbox doesn't insert tab characters. When you press Tab, it instead moves focus to the next element. When you press Ctrl-Tab, it inserts a tab character.</p>
  
  <p>How can this behavior be fixed to act like people normally expect text boxes to behave, such that the Tab key inserts an indent using the tab character? Furthermore, how can Ctrl-Tab can be remapped to an alternative function?</p>
  
  <p>For the first question of inserting a tab character, I can attach to the TextBox's KeyDown event and if the key pressed is Tab, then mark the event as handled to prevent the TextBox from losing focus, but how can I insert the Tab character?</p>
  
  <p>When I attach to the Textbox's KeyDown event, pressing the Tab key never fires the listener at all if Ctrl is already held down. If I attach to the TextBox's KeyUp event, pressing the tab key does get picked up, but only after it has already inserted a tab into the TextBox. How can Ctrl-Tab be remapped without this unwanted behavior?</p>
  
  <p>I'm working in C++/CX.</p>