Added front-end logging to keypress