Prevent default key press event