Added keydown event for support Function keys and other special keys.