Prevent keyboard shortcut related js error