Improved timer helper, added KeyBoard helper, improved timer directive