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

getOemKey() is returning a value two time but required only one time so. please help me