added key hit and exit key