Try
vb.net Code:
  1. If Asc(e.KeyChar) = Keys.F2 Then