Corrected the .keydown function