Added functions for keymap stuff. Few changes into Widget system

Signed-off-by: Slava Zanko <slavazanko@gmail.com>