triggering editRevert on escape key

triggering editRevert when the escape key is pressed