Improving keyboard tests stability
Sometimes test execution happens before testing shell is opened. This
should fix it.