cancel EditMode if key is pressed outside grid