Interface IKeyEvent
interface IKeyEvent
Extends IInputEvent
Interface which defines a key event
Methods
keyCode()
com.amazon.kepler.input.events.KeyCode keyCode()
Returns
com.amazon.kepler.input.events.KeyCode
key code. Note, key code for ‘a’ or ‘A’ would be same. Use keyName() for that purpose.
keyName()
string keyName()
Returns
string
the Unicode text that this key generated.
keyState()
com.amazon.kepler.input.events.KeyState keyState()
Returns
com.amazon.kepler.input.events.KeyState
key state. Valid states are UP, DOWN and REPEAT.

