I have found that pressing the ESCAPE key on the initial entry window for an object will close the form without warning, even if you have filled out fields in the form.
This is the same behavior as the “Cancel” button, so in that sense it is consistent.
In both cases, it would be nice to be able to get a warning if the user has entered data in the fields because closing the window using either the “Cancel” button or the ESCAPE key.