button: Move keyboard related stuff into common.blocks (close #359)