Fixed registering escape key in pjs.