I would like to learn how to do a simple IR REMOTE CONTROL keyboard with several buttons and one SHIFT-key. I would use the SHIFT key to double the buttons.
The problem I'm having with own simple code is that when I press the SHIFT-key and BUTTON 1, it also activates the BUTTON 1 at the same time and it should not do that. How to get rid of this?
Could someone write me a simple code to demonstrate how to do this?
Are there any tutorials available for this? I haven't find any yet.
To make it even more clear, this condition is true regardless of the state of button 3 (your shift key I assume) - ie the if will go through wether you press or not on button 3
What changes have you tried? Please describe them and what results you saw.
Yes, it should do that because that's what your code says it should do. It's quite simple code and easy to follow. Code is not "magic", it's just a list of simple instructions.
Read your code in loop(), line by line, and follow the list of instructions in your head. What conditions are checked? What are the inputs? What is the result? What code line will be executed next?
That might improve your code later, but you don't need to change the structure you have now, just fix the conditions in your existing if statements.