Fixed issue #248 where keycodes in Firefox are different.
Merge branch 'issue/248'