Changing to keyPress instead of keyUp to detect lowercase, uppercase and special characters