added pause key event