Fix keyboard not working on OS X