add support for custom keyboard availability condition
fix css syntax error