KMenu: Support for onSelected callback

This pull request add support for onSelected callback for KMenu.