fixed a typo in keyboard api