iOS: Fix for shift key handling (by bslande)

Fixes #1203
Credit goes to @bslande