[API] Add key attribute for HotKey object.
Fix typo.
[Test] Manual and automatic test case for HotKey.