Escape method

Added a method for pressing the escape key and though it might be useful for other users. Spec also written