So checking for one tap.
That is not possible, you can only check press or release separately.
But Tex Killer is completely right: if the key was released then it has been tabbed (or pressed for a while).
If you want to be sure that the key went up and down within a second (so when it was tapped and not held down for a while) then you have to write it yourself.
- Set a boolean to true when a button is pressed.
- Reset a timer.
- When the button is released you check how many time was passed. Less than one second -> key was tapped, more than one second -> ignore it.
- Set the boolean to false.
But yet again: just check for key release and save yourself a lot of trouble.