Hey can someone please tell me how to assign keys to buttons, I tried with a code but it only works once or it only works when I have to press the button on the screen and then use the key but it only works once
Can someone please help the keys are A and L for the two buttons and I'm trying to switch around images, please be Visual Basic Express 10

Not how I approach such. With reference material at https://docs.microsoft.com/en-us/dotnet/desktop/winforms/input-keyboard/events?view=netdesktop-6.0 my approach is to add an event handler (remember I take it you are a seasoned coder so I won't find a tutorial on basics) then in that keyboard event fire the event I want for the button in question.
That is, the keyboard event handler can click the button.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.