Fix keyboard initialization on real hardware