title: how to check if the enter key is pressed python
body: <p>I have a bind event for when a key is pressed to trigger a function but how would I see if the key pressed was the enter key?
  Here is my code:</p>
  
  <p>This did not work. What would I replace the word enter with to check if the enter key is pressed:</p>
  
  <pre><code>def record(self,event):
      x = event.char
      if x == "Enter":
          print("Enter")
  </code></pre>