I want to use buttons to change values of speed and targets when I press arrow buttons but I am not sure how.
I tried to use key down events but it did not work. In fact, when I use arrow buttons they just highlight the buttons and the event does not happen whatsoever.
private void ShootingGallery_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up)
{
// Changing variables
}
}
I expect to use arrows as extra way of changing the values of variables of speed and targets