title: Python wait x secs for a key and continue execution if not pressed
body: <p>I'm a n00b to python, and I'm looking a code snippet/sample which performs the following:</p>
  
  <ul>
  <li>Display a message like "Press any key to configure or wait X seconds to continue"</li>
  <li>Wait, for example, 5 seconds and continue execution, or enter a configure() subroutine if a key is pressed.</li>
  </ul>
  
  <p>Thank you for your help!</p>
  
  <p>Yvan Janssens</p>