Fix 'this.date is undefined' on keyUp/keyDown