Code example for KeyEvent

Methods: obtain