The difference between the frequencies of the piano key and the tuning fork gives the frequency of the beats.
When the tuning fork is 405 Hz, and no beats are heard, then the piano key is also 405 Hz.
When the piano key is 405 Hz and the tuning fork is 402 Hz, then 405 - 402 = 3 beats are heard.
The piano key is 405 Hz.