Update keyboard_control.c

changed frequency to period.
added the spi sending part, need to add t he spi receiving part