Changed debug enable from keydown to keypress.