记录按键状态的类。

Signed-off-by: CyberZHG <CyberZHG@gmail.com>