code scraps for keyboard