[Keyboard]
-Implement keyboard state machine