Changed keyboard modifiers conditions