If keyup is also bound to document.body, the whatInput.keys() array is already empty by the time it is read. This is due to the fact that unLogKeys gets called before the second bound event is executed. Changed unLogKeys to bind to document instead which should avoid this issue entirely.
If keyup is also bound to document.body, the whatInput.keys() array is already empty by the time it is read. This is due to the fact that unLogKeys gets called before the second bound event is executed. Changed unLogKeys to bind to document instead which should avoid this issue entirely.