driver for keyboard1 corrected, delay function separted for memory savings