check for keyboard