Press the space bar. That is the interact key for grabbing items and collecting gold in the game.
If it does nothing, make sure the game window has focus, since browser-based titles will happily ignore input while another window is selected.