imguirenderer: stop using deprecating API for key events


Was leading to asserts when initializing the KeyMap which might be
due to changes made in the enum values for the Keys with latest imgui.

Pick-to: 6.9 6.8
Change-Id: Ibb6898f724470e117567fb528de7eada7fc08a66
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit4465c4664bf89905ad6eef82b19ca27088aead67
parentb36d5ad719656fb832af4c30a2f92891ae10955e
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeFri, 13 Dec 2024 16:30:47 +0100