In the context of a lightning component, you can access the event object and it's properties in both your controller and helper.
<ui:inputText value="{!v.val}" keyup="{!c.onKeyUp}" />
Controller.js
({
onKeyUp: function(component, event, helper)
{
helper.doKeyUp(component, event);
}
})
Helper.js
({
doKeyUp: function(component, event)
{
// access the event object in the helper using getParam() or getParams()
console.log(event.getParam('keyCode'));
console.log(event.getParams().keyCode);
}
})
You should be able to access any properties available on the standard Javascript Event
object using this method, more information about the Event
object can be found here:
https://developer.mozilla.org/en/docs/Web/API/Event
I would also recommended taking a look at the Javascript API documentation found in the Aura Reference App which you can find by navigating to the following URL:
https://yourdomain
.lightning.force.com/auradocs/reference.app#reference?topic=api:Event