title: Shell : detect when the user press a key (including arrow keys)
body: <p>I would like to detect when the user press a key. In order to do that, I used the following command :</p>
  
  <pre><code>read -rsn1
  </code></pre>
  
  <p>But it doesn't work for arrow keys.<br>
  Thanks.</p>