docs: def GetInput(self):
          "Build the INPUT structure for the action"
          actions = 1
          # if both up and down
          if self.up and self.down:
              actions = 2
  
          inputs = (INPUT * actions)()
  
          vk, scan, flags = self._get_key_info()
  
          for inp in inputs:
              inp.type = INPUT_KEYBOARD
  
              inp._.ki.wVk = vk
              inp._.ki.wScan = scan
              inp._.ki.dwFlags |= flags
  
          # if we are releasing - then let it up
          if self.up:
              inputs[-1]._.ki.dwFlags |= KEYEVENTF_KEYUP
  
          return inputs