Fixed an error with pressing escape on an input