Fix keyboard controller tests on Linux