title: NCurses and ESC,ALT keys
body: <p>I have a problem with <strong>NCurses</strong>... i need to handle all keys like <kbd>Esc</kbd>, <kbd>Alt</kbd>+<kbd>F</kbd> etc.
  Problem is that the codes are similar... i.e:</p>
  
  <hr>
  
  <p><kbd>Esc</kbd> - 27</p>
  
  <hr>
  
  <p><kbd>Alt</kbd>+<kbd>A</kbd> - 27 65</p>
  
  <hr>
  
  <p>As an example there is double code for <kbd>Alt</kbd>+<kbd>[key]</kbd> combination what <strong>similar</strong> to <kbd>Esc</kbd> key...
  Any ideas how handle that?</p>