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

cc @narqo @veged