How can one create working HUD button without losing focus in game?

Yeah. (adding more characters so my response is at least 10 characters)