If the battery is over the keyboard ribbon it could be pressing it, preventing the ribbon from making a good connection, thus making any keyboard useless.
If the ribbon was installed properly, then place a piece of tape so it won't move when you place the battery over it.