Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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.
Last modified on October 29, 2026