(USB keyboard + keyboard+lcd +due) using facing problem of getting same output

Looks like you should create a keyPressed() function to handle key presses. I think your call to getOemKey() is returning a value on press and release.