accessory: sec_keyboard: up-port driver/logic from galaxy-2636

fixed board-p5.c

Change-Id: I2685927299fabfccb14661e2c5a582d3dcafd843