Change keyevents tmeplate to use util method