Either a loose cable or bad controller on the board- for the keyboard
Ram is easier to install in a laptop than a Desktop if you ask me, usually just pop off the thermal plate and there you go, turn it off of course, but im sure you already knew that