code: def query_keymap(self):
          
          r = request.QueryKeymap(display = self.display)
          return r.map
docs: Return a bit vector for the logical state of the keyboard,
          where each bit set to 1 indicates that the corresponding key is
          currently pressed down. The vector is represented as a list of 32
          integers. List item N contains the bits for keys 8N to 8N + 7
          with the least significant bit in the byte representing key 8N.