fixes for external keyboard