Add the keyboard function