title: test pyautogui functions with unittest in python3.6
body: <p>I need to test functions that use pyautogui. For example, if pressing keyboard key "a" actually press an "a". How can I reproduce this? There is a way to capture the key that it´s been press?</p>
  
  <p>Ideal if it works in Windows and Linux</p>