fixed incorrect syntax and check if dropdown is shown before accepting keypresses
fixed incorrect syntax and check if dropdown is shown before accepting keypresses

binary-com/binary-style,binary-com/binary-style