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 IUIKeyEvent

interface IUIKeyEvent
Extends IUIWindowEvent Interface containing details for key events.

Methods

getModifier()

com.amazon.kepler.input.events.Modifier getModifier()
Returns a modifier key that was pressed, for eg. Ctrl, Alt

Returns

com.amazon.kepler.input.events.Modifier Modifier struct representing modifier key that are pressed.

getKeyStateEvent()

com.amazon.kepler.input.events.KeyStateEvent* getKeyStateEvent()
Returns key state event pointer representing timestamp, input type, device id, key code and key state of the key event.

Returns

com.amazon.kepler.input.events.KeyStateEvent* A pointer to KeyStateEvent.
Last modified on October 29, 2026