Sync the Num Lock state when entering/exiting quasimode