title: Read individual key presses in PowerShell
body: <p>Using PowerShell, I would like to read the value of key presses as they occur, without the user having to press enter. For example, if the user presses '1' I would like the PowerShell script to react to the choice immediately without an 'enter'.</p>
  
  <p>My research has turned up ReadKey,</p>
  
  <blockquote>
    <p>$input = $Host.UI.RawUI.ReadKey('IncludeKeyDown');</p>
  </blockquote>
  
  <p>But ReadKey returns much more information in the string than I require:</p>
  
  <blockquote>
    <p>72,h,0,True</p>
  </blockquote>
  
  <p>While I can parse the key press from this string, I'd prefer a more direct option. Does one exist?</p>