I'd like to check which key on the keyboard was pressed. My first attempt looked somthing like this:

Private Sub Button1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Button1.KeyPress
If e = System.Windows.Forms.Keys.Left Then

End If
End Sub

This gets a syntax error on the right side of the equal sign. Anyone see what I'm doing wrong?

Thanks in advance.