AltGr (Right Alt) returns 3 inputs at once

Hi,

We are struggling with binding controls to the AltGr/RightAlt key on British keyboards. Currently, the debug tool returns three inputs when AltGr is pressed on a British Keyboard:

Input: LeftControl
Input: RightAlt
Input: AltGr

Is this a known issue and is it due to be fixed?

Hey, old thread, but can I ask what you did to work around it?
I’m currently just testing if Left Control and RightAlt are pressed at the same time, and in that case, favouring the Right Alt.

Thanks!

Wow can’t believe this 3 year old bug still exists. See Why right alt (alt gr) acts like left ctrl?! - Questions & Answers - Unity Discussions

Still exists in 2019.4.15f1 LTS

this is a joke at this point. I’ve just discovered that my users in foreign languages couldn’t register because they have to press alt gr+2 to get the @ for their email. Surprise? I had the Left Control key set to submit or fire for the game.
Unity considers that Left Control key and Alt Gr are the same. So basically every time they pressed the Alt Gr to input the @, the game would consider you hitting the control key to submit the values… without the @ and giving an error to register or login. Locking everyone out of the game.

Awesome, isn’t it? I mean, this bug was reported 7 years ago! If it wasn’t because I got a spanish keyboard these days, I would never find out and explains why nobody from spanish speaking countries would ever join!

This just 100% sucks, having this issue right now.

I guess I will just use Windows Key Events from User32.dll instead of trusting Unity :frowning: