The keycodes for numbers are 48-57. With "0" = Chr$(48) and "9" = Chr$(57)