added pause functionality (press P or Pause key)