docstr: Get all the window events in the last tick and reponse accordingly
  :return: None
code: def get_events(self):
      """
      Get all the window events in the last tick and reponse accordingly
      :return: None
      """
      for event in pygame.event.get():
          if event.type == pygame.KEYDOWN:
              self.pressed_keys.append(event.key)
              # esc pressed
              if event.key == pygame.K_ESCAPE:
                  self.close()
          elif event.type == pygame.KEYUP:
              if event.key in self.pressed_keys:
                  self.pressed_keys.remove(event.key)
          elif event.type == pygame.QUIT:
              self.close()
  
file_path: coach/rl_coach/renderer.py
imports: import numpy
  import contextlib
  from pygame.locals import HWSURFACE, DOUBLEBUF
label_desc: Use image node_id 5 for calling the Renderer obj's underlying member method code with example usage: obj.get_events() without return types