private void Key_Click(object sender, EventArgs e){Button currentkey = (Button)sender;//remove the word 'Key' from the name like from 'Key05'string currentKey = currentkey.Name.Remove(0, 3);byte keynum = Convert.ToByte(currentKey);textBox1.Text = Convert.ToString(keynum);}