The problem is:
if (e.KeyValue = Keys.A)
You want to check equality. For this, you have to use
two =
signs, not one (one
=
sign is for assignment). Additionally,
KeyValue
contains an int, but you check it against a value of the
Keys
enum, so you have to replace "KeyValue" with "KeyCode" or "KeyData" (KeyCode when you don't care about modifiers, KeyData when you do care about modifiers).
if (e.KeyCode == Keys.A)