Determine whether a KeyEvent is belongs to KEY_PRESSED type
<p>I am getting an instance of <code>KeyEvent</code> from a 3rd party libraries.</p>

<p>How can I know whether the event is a <code>KeyEvent.KEY_PRESSED</code> type? Which method from <code>KeyEvent</code> I should call?</p>
