Exit on pressing escape button