CREATE A SQUARE AND KEYBOARD FUNC