text: Title: Add return codes to mouse.wait_for_click and keyboard.wait_for_keypress
  Body: ### Has this issue already been reported?
  
  - [X] I have searched through the existing issues.
  
  ### Is this a question rather than an issue?
  
  - [X] This is not a question.
  
  ### What type of issue is this?
  
  Enhancement
  
  ### Which Linux distribution did you use?
  
  N/A
  
  ### Which AutoKey GUI did you use?
  
  _No response_
  
  ### Which AutoKey version did you use?
  
  N/A
  
  ### How did you install AutoKey?
  
  N/A
  
  ### Can you briefly describe the issue?
  
  I want to know how a wait for click or keypress completed so I can use that information for flow control in scripts.
  
  E.g. a loop continues indefinitely until the mouse is clicked. This has to distinguish between a timeout and a click.
  The same thing with a loop terminated by a keypress.
  
  ### Can the issue be reproduced?
  
  N/A
  
  ### What are the steps to reproduce the issue?
  
  N/A
  
  ### What should have happened?
  
  These API calls should return 0 for success and one or more defined non-zero values to cover any alternatives. So far, 1 for timeout/failure is all that comes to mind.
  
  ### What actually happened?
  
  AFAIK, they do not return any status code - which is equivalent to returning 0 no matter what happened.
  
  ### Do you have screenshots?
  
  _No response_
  
  ### Can you provide the output of the AutoKey command?
  
  _No response_
  
  ### Anything else?
  
  _No response_