Fix keyboard input for Macs (I think)