Keyboard implemented

Help me to make code shorter