actually use ring buffer in hw_keyboard.c