The chengyu
趁热打铁 (chèn rè dǎ tiě, 'strike while the iron is hot') is the most common way you'll meet
打铁 in modern Chinese - a direct counterpart to the English idiom. The basketball-slang sense (missing the rim with a metallic 'clang') is recent and informal, common in NBA commentary and gaming chats.