Fix for input bug in OSX

This fixes a bug with input on OSX where if you bind a command it will now send the correct value to TorqueScript.

This fix was originally submitted in pull request #91
Credit for this fix to timmgt