The key that needs to be pressed in order to transform Hugo into stone is displayed next to the stone icon on the upper right corner of the screen. The default button is the 2 key from your keyboard. You can visit the Controls section from the Option menu in order to view and change the button configuration. For additional information, check the help menu.