Disable letters in cc number for Firefox

Firefox returns 0 for event keyCode on letters or numbers input.