Pass event variable as `e` to keypress event function

Pass event variable as `e` to function to prevent "ReferenceError: e is not defined" on keypress events.