When you press M or I the app enters typing mode; type digits (and an optional leading -), then press Enter to commit or Esc to cancel.