// Make a new lambda function
Func<string, string> greet = (name) => $"Hello, {name}!";
// Call it
Console.WriteLine(greet("John"));
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
bool shiftPressed = (keyData & Keys.Shift) != 0;
Keys unmodifiedKey = (keyData & Keys.KeyCode);
// rest of code goes here
}