Fix an issue with AltGr key detection after a Ctrl shortcut execution. Also add a unit test for this case.