Added KeyListener to respond to escape key