This seems to be a bug in iOS 8. There are two fixes to this problem :
Toggle between simulator keyboard and MacBook keyboard using the Command+K shortcut.
Reattach keyboard to simulator :
a. Open Simulator
b. Select Hardware -> Keyboard
c. Uncheck and then check 'Connect Hardware Keyboard'
OR simply press the Shift + Command + K shortcut