oh, the isKeyboardActivated() is not used, just for make the interface
looks reasonable. prefer remove it?

the return value is casted since I changed the static member type, I will
fix that first.