- Home /
KeyCode.RightShift not working in Flash Player
The line
bool panning = (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift));
works in editor and webplayer, but not in Flash-Player. The latter only recognizes left-shift, not right-shift, which is weird. Event.current.shift also doesn't work with right shift.
Apparently key states are incorrectly implemented. Apparently also I am the only one the experience that issue since it is not mentioned in the web - can anybody confirm this bug?
I'm using unity 3.5.7f6 for the reason that there the FlashPlayer (preview) is still working (using unity 4.3 produces SWFs that immediately run into a out-of-memory error at start).
Does anybody know for any way to query the key state differently than Input.GetKey?
I know that Flash is no longer supported and I'm not looking for a bugfix either, just another way to check for the right shift key.
Thanks
Your answer

Follow this Question
Related Questions
Left Shift being cancelled by left control? 1 Answer
shift key input script 6 Answers
On Mac "left shift" and "right shift" trigger both Keys 3 Answers
Shift + ScrollWheel 1 Answer