title: Get key pressed on react native
body: <p>I use React Native to build an app to Android tablet. I plug a physical keyboard on it and I need to get any key pressed. </p>
  
  <p>Example: the user tap the key <code>F</code> so the app open the <code>Function</code> screen</p>
  
  <pre><code>if (screenPress == 'F'){
    this.props.navigation.navigate('Function')
  }
  </code></pre>
  
  <p>How to do it?</p>
  
  <p>I try to use react-native-key-event</p>
  
  <pre><code>KeyEvent.onKeyUpListener((keyCode, event) =&gt; {
    listener(keyCode)
    this.setState({busca: keyCode})
  });
  </code></pre>
  
  <p>But it's not working</p>