Bug 1071592 - Fix intermittent failure in test_keyboard.py
Merge pull request #24432 from viorelaioia/bug_1071592_v2.1

Bug 1071592 - Fix intermittent failure in test_keyboard.py