Fix the bug of defining key binding in a wrong way.