Added the base for the keyboard function