Better event handling for 'esc' key