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.
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.