Remove delay when ESC key is pressed

By default there is a delay of 1000 milliseconds
when the escape key is pressed in case an escape
sequence is being entered. This is not needed.

Comments have also been changed to be consistent
with the rest of the code base.