実行時にキャンバスにテキストボックスを作成しているためKeyDown、押されたテキストボックスでイベントを使用できません。
これが私のコードです:
private void canvas1_KeyDown(object sender, KeyEventArgs e)
{
    int line = Convert.ToInt32(((TextBox)sender).Name.Substring(4, 1));
    //here pop up exception
    int column = Convert.ToInt32(((TextBox)sender).Name.Substring(3, 1));
}
例外は次のとおりです。
「タイプ 'System.Windows.Controls.Canvas' のオブジェクトをタイプ 'System.Windows.Controls.TextBox' にキャストできません。」