hi @souvik. Once a component has the focus, the event handlers for the key strokes would be detected immediately. However, you’d need to add the appropriate key handlers as a member function of your component. The documentation explains it here: LightningJS.io - Documentation.
So for example, if on your component you want to detect every time a user pressed the “A” key on their keyboard, you’d need to add
_handleA() {
console.log("A key pressed!");
}
And so on for all the keys or use the catch-all _handleKey() method.
@eduardo.guzman thank you for your help, in storybook component $onSoftKey() method triggered for keypress, want to state change when key is pressed but got some some error.