Welcome to Android Central! Are you sure it's the keyboard, or could it be a hardware issue related to the digitizer? If you go to landscape orientation, is it still the P and O keys that don't register? If not, then the digitizer might be developing dead spots in the P and O area of the screen when in portrait mode.