Added deactivation using Escape key