improved keyboard support for the simulator and OS X