AtkKeyEvent: Use checked operations

There were irregularities in how the HashMap Object was being
initalised so this needed to be fixed. After that it was just
a matter of explicitly defining the types that are being used.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739503