Prevent default action of keydown event