WinForms C# - Change keybinds on button click

I have made a small program in C# and added some buttons. I have one input detection. So how can I make so that after button click it will record key pressing and first key that will be pressed will be the keybind. Like this

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum