Used preventDefault, to prevent default keyboard actions to fire browser behaviour(scroll, link follow)