Fixes a bug where ampersand cannot be typed on Chrome/Mac

Fixes issue #294, fix by @yliharma