How can I add hotkeys to gamemodes?

Hi,
Im trying to add hotkeys to my gamemode but I really dont know what code/script should I put
so someone can help me or send/post a link to a tut that would be very helpful.
(Hotkey like f4… = menu pop-up)
thanx