Fixed bug where keyboard shortcuts on Mac OS wasn't working correctly.