title: Flutter: How to detect keyboard press Enter?
body: <p><code>TextEditingController.addListener()</code> registers a callback for when the text changes. This seems to also be triggered by pressing the Enter button, opening/closing the keyboard (changing focus).</p>
  
  <p>How do i register that it was the enter that was pressed so i can, for example, invoke an API?</p>
  
  <p>The current way i achieve this is by listening on the <code>FocusNode</code> to detect focus change. Focus is removed from the <code>FocusNode</code> when pressing enter, and the keyboard closes. Is this the right way to do it?</p>