   return;
  }

  switch (e.keyCode) {
    // Allow these
    case goog.events.KeyCodes.DELETE:
    case goog.events.KeyCodes.BACKSPACE:
    case goog.events.KeyCodes.TAB:
      return;
  }

  // prevent default for the rest
  e.preventDefault();
}

goog.events.listen(docKh, goog.events.KeyHandler.EventType.KEY,
    numberInputKeyHandler);

</script>

</body>
</html>
