title: AutoHotKey: Getting the last key that was pressed
body: <p>I'd like to get the last key that was pressed by the user. I'm not talking about a hotkey; just a normal keypress.</p>
  
  <p>If possible, I'd also like to have keys that AHK typed using <code>SendInput</code> be included. So if AHK just did <code>SendInput</code> for some keys, and I'm asking for the last key that was pressed, then I'd be given the last key that AHK emitted or the last key that the user typed, depending on who typed last.</p>
  
  <p>I tried <code>A_PriorKey</code>, but it's problematic because when I tried it, it showed one of the keys that triggered the script, rather than the keys that came before the hotkeys, which is what I want. </p>
  
  <p>Is what I want possible?</p>