Fixed bug with key press handling
(cherry picked from commit A3Wasteland/ArmA3_Wasteland.Altis@d748521a1bfc3da24c5a3562294511dd749ab5df)