Pattern detection now works for overlapping patterns.
NUMPAD keys mapped to normal digits so sequence is detected when entered
on NUMPAD.