Check last keypress charCode instead of keyCode on keyup to determine if comma was pressed. Fixes #1