Fixed an issue with external keyboards