title: Capturing a 'delete' key press
body: <p>I can't figure out how to capture the <kbd>Delete</kbd>key press.
  I found out that in ASCII code table, it is at 127 place, but <code>if (Key = #127) then</code> got me nowhere.  </p>
  
  <p>Then I checked the value of <code>VK_DELETE</code> which was 47. Tried to use that, but it didn't work.</p>
  
  <p>The <code>KeyPreview := true</code> is set in my form.</p>
  
  <p>I tried to add the <code>ShowMessage(IntToStr(Ord(Key)))</code> to the Forms KeyPress event, but I never got the message popup while clicking the <kbd>Delete</kbd> key.</p>
  
  <p>I need to handle the <kbd>Delete</kbd> key press in dynamicaly created Edit fields. I want to control what part of the text user can erase in that field, and I know how to handle the text deletion using <kbd>Backspace</kbd> key, now need to figure out how to do it with <kbd>Delete</kbd> key.</p>
  
  <p>Thanks</p>