It is now easy to key keyboard events in the activity's pageComponent by adding a Keys.onPressed in it.