title: How to Run Anaconda as admin on MacOS Catalina?
body: <h1>When I run the following code in Jupyter Notebook on my Mac</h1>
  <pre><code>import keyboard
  if keyboard.is_pressed('q'):
      print(&quot;Yes&quot;)
  </code></pre>
  <h1>It shows the following error:</h1>
  <pre><code>Exception in thread Thread-4:
  Traceback (most recent call last):
    File &quot;/Users/mayankmalviya64/opt/anaconda3/lib/python3.7/threading.py&quot;, line 926, in _bootstrap_inner
      self.run()
    File &quot;/Users/mayankmalviya64/opt/anaconda3/lib/python3.7/threading.py&quot;, line 870, in run
      self._target(*self._args, **self._kwargs)
    File &quot;/Users/mayankmalviya64/opt/anaconda3/lib/python3.7/site-packages/keyboard/__init__.py&quot;, line 294, in listen
      _os_keyboard.listen(self.direct_callback)
    File &quot;/Users/mayankmalviya64/opt/anaconda3/lib/python3.7/site-packages/keyboard/_darwinkeyboard.py&quot;, line 430, in listen
      raise OSError(&quot;Error 13 - Must be run as administrator&quot;)
  OSError: Error 13 - Must be run as administrator
  </code></pre>
  <p>Since on MacOS, run as administrator option is NOT available like Windows, what should I do ?
  I want to detect keypress like when any-key on the keyboard is pressed, the program stops !!</p>
  <pre><code>I have also tried to run the above code through my terminal in iPython. It shows the same error there too.
  </code></pre>